Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,8 @@ def prepare_media(source_path_or_url: os.PathLike,
|
|
84 |
# '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
|
85 |
subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
86 |
'-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
87 |
-
'--force-overwrites', '--
|
|
|
88 |
audio_file += '.mp3'
|
89 |
except Exception as e:
|
90 |
print(f"Alternative downloader failed, error: {e}. Please try again later!")
|
|
|
84 |
# '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
|
85 |
subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
86 |
'-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
87 |
+
'--force-overwrites', '--username', 'oauth2', '--password', '',
|
88 |
+
'--cache-dir', 'amt/src/extras/cache', '-v'])
|
89 |
audio_file += '.mp3'
|
90 |
except Exception as e:
|
91 |
print(f"Alternative downloader failed, error: {e}. Please try again later!")
|