Skip to content

Commit

Permalink
--all: change display_name to id (closes #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Mar 24, 2022
1 parent aa674cf commit b08f3b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpotifyExport.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def getUserPlaylists(self, user):
more = len(results) == 50
count = count + 1

return [p for p in pl if p['owner']['display_name'] == user and p['tracks']['total'] > 0]
return [p for p in pl if p['owner']['id'] == user and p['tracks']['total'] > 0]

def get_tracks(self, url):
tracks = []
Expand Down Expand Up @@ -74,4 +74,4 @@ def build_results(tracks, album=None):

def get_id_from_url(url):
url_parts = url.split('/')
return url_parts[4].split('?')[0]
return url_parts[4].split('?')[0]

0 comments on commit b08f3b5

Please sign in to comment.