Skip to content

Commit

Permalink
Merge pull request #1068 from Jack-Dane/master
Browse files Browse the repository at this point in the history
Fix broken example
  • Loading branch information
dieser-niko committed May 9, 2024
2 parents a14a28e + 97c9917 commit 23bf3c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changes the YouTube video link for authentication tutorial (the old video was in low definition, the new one is in high definition)
- Updated links to Spotify in documentation
- Improve usability on README.md
- Fix `user_playlists_contents` example.

## [2.23.0] - 2023-04-07

Expand Down
3 changes: 1 addition & 2 deletions examples/user_playlists_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def show_tracks(results):
print(playlist['name'])
print(' total tracks', playlist['tracks']['total'])

results = sp.playlist(playlist['id'], fields="tracks,next")
tracks = results['tracks']
tracks = sp.playlist_items(playlist['id'], fields="items,next", additional_types=('tracks', ))
show_tracks(tracks)

while tracks['next']:
Expand Down

0 comments on commit 23bf3c9

Please sign in to comment.