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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -82,7 +82,9 @@ def prepare_media(source_path_or_url: os.PathLike,
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!")
 
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, '-f', 'bestaudio',
86
+ '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
87
+ '--force-overwrites', '--cache-dir', 'amt/src/extras/cache'])
88
  audio_file += '.mp3'
89
  except Exception as e:
90
  print(f"Alternative downloader failed, error: {e}. Please try again later!")