mimbres commited on
Commit
4bb6be1
1 Parent(s): 938e11c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -91,9 +91,13 @@ 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', 'bestaudio',
95
  '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
96
- '--force-overwrites', '--username', '[email protected]', '--password', '',
97
  '-v'])
98
  audio_file += '.mp3'
99
  except Exception as e:
 
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]', '--password', '',
97
+ # '-v'])
98
  subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
99
  '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
100
+ '--force-overwrites', '--cache-dir', 'amt/src/extras/auth2',
101
  '-v'])
102
  audio_file += '.mp3'
103
  except Exception as e: