mimbres commited on
Commit
1b23ec4
1 Parent(s): 820f5af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ def prepare_media(source_path_or_url: os.PathLike,
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', '--cookies', 'amt/src/extras/c.txt'])
97
  audio_file += '.mp3'
98
  except Exception as e:
99
  print(f"Alternative downloader failed, error: {e}. Please try again later!")
 
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', '--cache-dir', 'amt/src/extras/c.json'])
97
  audio_file += '.mp3'
98
  except Exception as e:
99
  print(f"Alternative downloader failed, error: {e}. Please try again later!")