Merge pull request #36 from modzilla99/patch-1

[WIP] Check if Name of Song is set
This commit is contained in:
Footsiefat 2021-10-21 08:42:41 +13:00 committed by GitHub
commit 064bc563ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,9 @@ def client():
download_from_user_playlist()
elif sys.argv[1] == "-ls" or sys.argv[1] == "--liked-songs":
for song in get_saved_tracks(token):
if not song['track']['name']:
print("### SKIPPING: SONG DOES NOT EXISTS ON SPOTIFY ANYMORE ###")
else:
download_track(song['track']['id'], "Liked Songs/")
print("\n")
else: