Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,10 @@ def convert_video(video_file, quality, aspect_ratio, video_url, api_key, upload,
|
|
70 |
resolution = [resolution] if not isinstance(resolution, list) else resolution
|
71 |
|
72 |
for res in resolution:
|
|
|
|
|
|
|
|
|
73 |
scale = "-1:" + str(res.replace("p", "")) # we convert '1080p' to '-1:1080'
|
74 |
output_path = get_output_path(input_path, temp_dir, res) # pass the resolution to create a unique output file
|
75 |
|
|
|
70 |
resolution = [resolution] if not isinstance(resolution, list) else resolution
|
71 |
|
72 |
for res in resolution:
|
73 |
+
# Skip if res is boolean
|
74 |
+
if isinstance(res, bool):
|
75 |
+
continue
|
76 |
+
|
77 |
scale = "-1:" + str(res.replace("p", "")) # we convert '1080p' to '-1:1080'
|
78 |
output_path = get_output_path(input_path, temp_dir, res) # pass the resolution to create a unique output file
|
79 |
|