Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def clip(yt_url, video_file_path, start_timestamp, end_timestamp):
|
|
14 |
duration = int(end_timestamp) - int(start_timestamp)
|
15 |
|
16 |
with TemporaryDirectory() as tmpdir:
|
17 |
-
if yt_url is not None:
|
18 |
video_output_path = os.path.join(tmpdir, "video.mp4")
|
19 |
ydl_opts = {
|
20 |
"quiet": True,
|
|
|
14 |
duration = int(end_timestamp) - int(start_timestamp)
|
15 |
|
16 |
with TemporaryDirectory() as tmpdir:
|
17 |
+
if yt_url is not None and len(yt_url.strip()) != 0:
|
18 |
video_output_path = os.path.join(tmpdir, "video.mp4")
|
19 |
ydl_opts = {
|
20 |
"quiet": True,
|