change output dir
This commit is contained in:
parent
2151a5d93a
commit
e5223e8296
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ def download(url, video_or_audio):
|
||||||
process.wait()
|
process.wait()
|
||||||
return True
|
return True
|
||||||
elif video_or_audio == "audio":
|
elif video_or_audio == "audio":
|
||||||
process = subprocess.Popen(["yt-dlp", "-o", "data/ytdl/%(playlist|)s/%(playlist_index)s - %(title)s.%(ext)s", "-x", "--yes-playlist", f"{url}"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
process = subprocess.Popen(["yt-dlp", "-x", "--yes-playlist", url], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
print(process.stdout.read())
|
print(process.stdout.read())
|
||||||
process.wait()
|
process.wait()
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue