From dd4a23a82a22d45bc2051d77f9c868df9a9e7fef Mon Sep 17 00:00:00 2001 From: Footsiefat <12180913+Footsiefat@users.noreply.github.com> Date: Fri, 22 Oct 2021 11:25:27 +1300 Subject: [PATCH] Changed default format back to mp3 --- zspotify.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/zspotify.py b/zspotify.py index 3158b618..ce96c9df 100755 --- a/zspotify.py +++ b/zspotify.py @@ -31,7 +31,7 @@ ROOT_PODCAST_PATH = "ZSpotify Podcasts/" SKIP_EXISTING_FILES = True -MUSIC_FORMAT = "ogg" # or "ogg" +MUSIC_FORMAT = "mp3" # or "ogg" RAW_AUDIO_AS_IS = False # set to True if you wish to just save the raw audio FORCE_PREMIUM = False # set to True if not detecting your premium account automatically @@ -619,6 +619,7 @@ def download_album(album): download_track(track['id'], artist + " - " + album_name + "/") print("\n") + def download_playlist(playlists, playlist_choice): """Downloads all the songs from a playlist""" token = SESSION.tokens().get("user-read-email") @@ -632,6 +633,7 @@ def download_playlist(playlists, playlist_choice): playlists[int(playlist_choice) - 1]['name'].strip()) + "/") print("\n") + def download_from_user_playlist(): """ Select which playlist(s) to download """ token = SESSION.tokens().get("user-read-email") @@ -658,11 +660,8 @@ def download_from_user_playlist(): for playlist in range(start, end): download_playlist(playlists, playlist) - + print("\n**All playlists have been downloaded**\n") - - - # Core functions here