]> Skullheadx's Git Forge - youtube-downloader.git/commitdiff
remove the download folder
authorSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Mon, 14 Oct 2024 02:56:51 +0000 (22:56 -0400)
committerSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Mon, 14 Oct 2024 02:56:51 +0000 (22:56 -0400)
ytdl/funcmodule.py

index 5d6031655a6622e2641a28fbf823e6ed5c10b9bd..d398f7c5e0b0318b306d93b1774cd984d2e53bb7 100644 (file)
@@ -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)