change output dir

This commit is contained in:
Phixxy 2024-09-04 22:39:59 -07:00
parent 2151a5d93a
commit e5223e8296

View file

@ -11,7 +11,7 @@ def download(url, video_or_audio):
process.wait()
return True
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())
process.wait()
return True