mimbres commited on
Commit
70aec3b
1 Parent(s): bd1ed50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -79,9 +79,10 @@ def prepare_media(source_path_or_url: os.PathLike,
79
  # subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
80
  # '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
81
  # '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
82
- subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
83
- '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
84
- '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
 
85
  audio_file += '.mp3'
86
  except Exception as e:
87
  print(f"Alternative downloader failed, error: {e}. Please try again later!")
 
79
  # subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
80
  # '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
81
  # '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
82
+ # subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
83
+ # '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
84
+ # '--force-overwrites', '--cookies', 'amt/src/extras/c.txt'])
85
+ subprocess.run(['yt-dlp', '-x', source_path_or_url])
86
  audio_file += '.mp3'
87
  except Exception as e:
88
  print(f"Alternative downloader failed, error: {e}. Please try again later!")