mimbres commited on
Commit
6309e8e
·
verified ·
1 Parent(s): c1e6317

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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']