forgot to add int() to Greater than or equal to ops

pull/418/head
Jason 3 years ago
parent dbf68477a6
commit bff0881b80

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

Loading…
Cancel
Save