deepsync commited on
Commit
5ca1c96
·
verified ·
1 Parent(s): 8c9c705

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,