deepsync commited on
Commit
251705c
·
verified ·
1 Parent(s): b37dc17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -33,7 +33,9 @@ def clip(yt_url, start_timestamp, duration):
33
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
34
  ydl.download([yt_url])
35
  clip_path = os.path.join(tmpdir, f"{uuid4()}.mp3")
 
36
  subprocess.run(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"', shell=True)
 
37
  return clip_path
38
 
39
 
 
33
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
34
  ydl.download([yt_url])
35
  clip_path = os.path.join(tmpdir, f"{uuid4()}.mp3")
36
+ print(os.listdir(tmpdir))
37
  subprocess.run(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"', shell=True)
38
+ sleep(3)
39
  return clip_path
40
 
41