From 6dfd326babad33d181105dfaad66ce108479e781 Mon Sep 17 00:00:00 2001 From: alexander-bui Date: Thu, 15 Dec 2022 11:03:03 -0600 Subject: [PATCH] added outtmpl to properly name output files --- spotify_to_mp3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spotify_to_mp3.py b/spotify_to_mp3.py index 0f541c9..932ff10 100644 --- a/spotify_to_mp3.py +++ b/spotify_to_mp3.py @@ -80,6 +80,7 @@ def find_and_download_songs(reference_file: str): 'preferredcodec': 'mp3', 'preferredquality': '192', }], + 'outtmpl': os.path.join( "{}".format(os.getcwd()), '%(title)s.%(ext)s'), } with yt_dlp.YoutubeDL(ydl_opts) as ydl: ydl.download([best_url])