Update app.py
Browse files32 unmodified lines3334353637383932 unmodified lineswith yt_dlp.YoutubeDL(ydl_opts) as ydl:ydl.download([yt_url])clip_path = os.path.join(tmpdir, f"{uuid4()}.mp3")subprocess.run(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"', shell=True)return clip_path32 unmodified lines33343536373839404132 unmodified lineswith yt_dlp.YoutubeDL(ydl_opts) as ydl:ydl.download([yt_url])clip_path = os.path.join(tmpdir, f"{uuid4()}.mp3")print(os.listdir(tmpdir))subprocess.run(f'ffmpeg -ss {start_timestamp} -t {duration} -i "{video_output_path}" "{clip_path}"', shell=True)sleep(3)return clip_path
app.py+2