Update app.py
Browse files
app.py
CHANGED
@@ -91,9 +91,10 @@ def prepare_media(source_path_or_url: os.PathLike,
|
|
91 |
# subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
92 |
# '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
93 |
# '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
|
94 |
-
subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f',
|
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!")
|
|
|
91 |
# subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
92 |
# '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
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', '--username', '[email protected]', '--passowrd', 'h~bM;M0dpZDA',
|
97 |
+
'--cookies', 'amt/src/extras/c.txt'])
|
98 |
audio_file += '.mp3'
|
99 |
except Exception as e:
|
100 |
print(f"Alternative downloader failed, error: {e}. Please try again later!")
|