From 708109426e3371595bd24ebd20e8f7bf29bf5baf Mon Sep 17 00:00:00 2001 From: Skullheadx <94652084+Skullheadx@users.noreply.github.com> Date: Sun, 13 Oct 2024 22:56:51 -0400 Subject: [PATCH] remove the download folder --- ytdl/funcmodule.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ytdl/funcmodule.py b/ytdl/funcmodule.py index 5d60316..d398f7c 100644 --- a/ytdl/funcmodule.py +++ b/ytdl/funcmodule.py @@ -71,11 +71,10 @@ def download_audio_streams(audio_streams, metadata): '-metadata', f'artist={md["artist"]}', '-metadata', f'date={md["publish_date"]}', '-metadata', f'comment={big_num_format(md["views"]) + " views"}', - "downloads/" + audio_stream.title + ".mp4", + audio_stream.title + ".mp4", '-y' ] - if "downloads" not in [i.name for i in os.scandir()]: - os.mkdir("downloads") + subprocess.run(command) os.remove("thumbnail.jpg") os.remove(audio_stream.default_filename) -- 2.54.0