Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def prepare_media(source_path_or_url: os.PathLike,
|
|
93 |
# '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
|
94 |
subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
95 |
'-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
96 |
-
'--force-overwrites', '--
|
97 |
audio_file += '.mp3'
|
98 |
except Exception as e:
|
99 |
print(f"Alternative downloader failed, error: {e}. Please try again later!")
|
|
|
93 |
# '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
|
94 |
subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
95 |
'-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
96 |
+
'--force-overwrites', '--cache-dir', 'amt/src/extras/c.json'])
|
97 |
audio_file += '.mp3'
|
98 |
except Exception as e:
|
99 |
print(f"Alternative downloader failed, error: {e}. Please try again later!")
|