Skip to content

Commit

Permalink
fix spotify track count printout
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Sep 26, 2021
1 parent 9877dab commit 1960f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpotifyExport.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def getSpotifyPlaylist(self, url):
more_tracks = self.api.playlist_items(playlistId, offset=count, limit=100)
tracks += build_results(more_tracks['items'])
count = count + 100
print(f"Spotify tracks: {count}/{total}")
print(f"Spotify tracks: {len(tracks)}/{total}")

return {'tracks': tracks, 'name': name, 'description': html.unescape(results['description'])}

Expand Down

0 comments on commit 1960f6a

Please sign in to comment.