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")