Update app.py
Browse files
app.py
CHANGED
@@ -73,6 +73,7 @@ def prepare_media(source_path_or_url: os.PathLike,
|
|
73 |
audio_file = './downloaded/yt_audio'
|
74 |
command = ['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
75 |
'-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
|
|
76 |
'--force-overwrites', '--username', 'oauth2', '--password', '', '-v']
|
77 |
if simulate:
|
78 |
command = command + ['-s']
|
|
|
73 |
audio_file = './downloaded/yt_audio'
|
74 |
command = ['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
75 |
'-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
76 |
+
'--file-access-retries', '10',
|
77 |
'--force-overwrites', '--username', 'oauth2', '--password', '', '-v']
|
78 |
if simulate:
|
79 |
command = command + ['-s']
|