removed file changes
Browse files- App/Worker.py +2 -2
App/Worker.py
CHANGED
@@ -24,8 +24,8 @@ def downloadfile(self, url, ydl_opts, model_size="tiny"):
|
|
24 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
25 |
info = ydl.extract_info(url, download=True)
|
26 |
audio_file = ydl.prepare_filename(info)
|
27 |
-
final_audio_file = f"{audio_file}.mp3"
|
28 |
-
os.rename(final_audio_file, audio_file)
|
29 |
|
30 |
# updated
|
31 |
self.update_state(state="Downloading complete", meta={})
|
|
|
24 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
25 |
info = ydl.extract_info(url, download=True)
|
26 |
audio_file = ydl.prepare_filename(info)
|
27 |
+
# final_audio_file = f"{audio_file}.mp3"
|
28 |
+
# os.rename(final_audio_file, audio_file)
|
29 |
|
30 |
# updated
|
31 |
self.update_state(state="Downloading complete", meta={})
|