removed probable syntax error

This commit is contained in:
Phixxy 2024-09-04 22:41:53 -07:00
parent e5223e8296
commit 2141abae5e

View file

@ -7,12 +7,10 @@ import subprocess
def download(url, video_or_audio):
if video_or_audio == "video":
process = subprocess.Popen(["yt-dlp", "-o", "data/ytdl/%(playlist|)s/%(playlist_index)s - %(title)s.%(ext)s", "--yes-playlist", f"{url}"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print(process.stdout.read())
process.wait()
return True
elif video_or_audio == "audio":
process = subprocess.Popen(["yt-dlp", "-x", "--yes-playlist", url], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print(process.stdout.read())
process.wait()
return True
else: