From: Skullheadx <94652084+Skullheadx@users.noreply.github.com> Date: Mon, 14 Oct 2024 02:56:51 +0000 (-0400) Subject: remove the download folder X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.css?a=commitdiff_plain;h=708109426e3371595bd24ebd20e8f7bf29bf5baf;p=youtube-downloader.git remove the download folder --- 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)