devingulliver commited on
Commit
10cd5de
·
verified ·
1 Parent(s): 8d32968

Fix playlist parsing (revert ft changes)

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import demucs.separate
8
 
9
  os.makedirs("/home/user/.cache/torch/hub/checkpoints")
10
  urllib.request.urlretrieve(
11
- "https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/d12395a8-e57c48e6.th",
12
  "/home/user/.cache/torch/hub/checkpoints/955717e8-8726e21a.th"
13
  )
14
 
@@ -39,7 +39,8 @@ def download_best_audio(url, outtmpl="%(id)s.%(ext)s"):
39
  "outtmpl": outtmpl,
40
  "progress_hooks": [progress_hook],
41
  "quiet": True,
42
- "cookiefile": "ytcookies.txt"
 
43
  }
44
 
45
  with YoutubeDL(ydl_opts) as ydl:
 
8
 
9
  os.makedirs("/home/user/.cache/torch/hub/checkpoints")
10
  urllib.request.urlretrieve(
11
+ "https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/955717e8-8726e21a.th",
12
  "/home/user/.cache/torch/hub/checkpoints/955717e8-8726e21a.th"
13
  )
14
 
 
39
  "outtmpl": outtmpl,
40
  "progress_hooks": [progress_hook],
41
  "quiet": True,
42
+ "cookiefile": "ytcookies.txt",
43
+ "noplaylist": True,
44
  }
45
 
46
  with YoutubeDL(ydl_opts) as ydl: