mimbres commited on
Commit
13c3ce6
·
verified ·
1 Parent(s): abcbdf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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', '--cache-dir', 'amt/src/extras/cache', '-v'])
 
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!")