From bff0881b807068772c49f2de5eeab9272ab90c08 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 7 Jun 2022 18:12:06 -0400 Subject: [PATCH] forgot to add int() to Greater than or equal to ops --- video_creation/final_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index ea237fb..2d0afcd 100755 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -43,7 +43,7 @@ def make_final_video(number_of_clips, length): # Gather all images image_clips = [] for i in range(0, number_of_clips): - if opacity is None or opacity >= 1: # opacity not set or is set to one OR MORE + if opacity is None or int(opacity) >= 1: # opacity not set or is set to one OR MORE image_clips.append( ImageClip(f"assets/temp/png/comment_{i}.png") .set_duration(audio_clips[i + 1].duration) @@ -58,7 +58,7 @@ def make_final_video(number_of_clips, length): .resize(width=W - 100) .set_opacity(float(opacity)), ) - if opacity is None or opacity >= 1: # opacity not set or is set to one OR MORE + if opacity is None or int(opacity) >= 1: # opacity not set or is set to one OR MORE image_clips.insert( 0, ImageClip(f"assets/temp/png/title.png")