yiyixuxu commited on
Commit
0f2175b
1 Parent(s): 7b3bf75
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -39,6 +39,7 @@ def select_video_format(url, format_note='480p', ext='mp4'):
39
  def download_video(url,format_id, n_keep=10):
40
  ydl_opts = {
41
  'format':format_id,
 
42
  'external_downloader' : 'aria2c',
43
  'external_downloader_args' :['--max-connection-per-server=16','--dir=videos'],
44
  'outtmpl': "videos/%(id)s.%(ext)s"}
 
39
  def download_video(url,format_id, n_keep=10):
40
  ydl_opts = {
41
  'format':format_id,
42
+ 'cachedir': False,
43
  'external_downloader' : 'aria2c',
44
  'external_downloader_args' :['--max-connection-per-server=16','--dir=videos'],
45
  'outtmpl': "videos/%(id)s.%(ext)s"}