mimbres commited on
Commit
2fa4ccf
·
verified ·
1 Parent(s): 5a6a40e

Update app.py

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