mimbres commited on
Commit
d06af5f
·
verified ·
1 Parent(s): e69a75e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def prepare_media(source_path_or_url: os.PathLike,
81
  audio_file = './downloaded/yt_audio'
82
  subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
83
  '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
84
- '--force-overwrites'])
85
  audio_file += '.mp3'
86
  except Exception as e:
87
  print(f"Alternative downloader failed, error: {e}. Please try again later!")
 
81
  audio_file = './downloaded/yt_audio'
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!")