sigma67 / spotify_to_ytmusic

Clone a Spotify playlist to YouTube Music
MIT License
895 stars 67 forks source link

--all argument is not working in some cases #26

Closed jlfrank83 closed 2 years ago

jlfrank83 commented 2 years ago

SpotifyExport.py The getUserPlaylists method returns 0 in a specific use case:

I initially registered for Spotify with my Facebook account, but later I unlinked them and deleted my Facebook. Now I log in with the Spotify user ID number, and my displayname can't be pulled from Facebook anymore, so it defaults to "Spotify"

Therefore this return fails: return [p for p in pl if p['owner']['display_name'] == user and p['tracks']['total'] > 0]

because in this case owner = <spotify user ID#> and 'display name' = "Spotify". Removing this if statement from the code fixed my problem.