Minor bugfixes:
- Playlist creation didn't correctly yield the ID of the new playlist - Albums with more than a single page of tracks would yield the results directly, rather than a pager
This commit is contained in:
parent
21adb3acdc
commit
b8ab83ae63
@ -47,7 +47,7 @@ def album_to_tracks(client: Spotify, albums: Iterable[SimplifiedAlbum]) -> Itera
|
||||
|
||||
# Because most album tracklists don't need to use paging, it's expected that API calls are relatively infrequent
|
||||
for album in albums:
|
||||
tracks_function = partial(client.album_tracks, album_id=album.spotify_id)
|
||||
tracks_function = partial(_album_tracks, album_id=album.spotify_id)
|
||||
|
||||
for track in exhaust(tracks_function, album.tracks):
|
||||
yield SimplifiedTrack(**track)
|
||||
|
@ -54,7 +54,7 @@ def playlist_current_user_assure(
|
||||
|
||||
if not found:
|
||||
current_user_id = user_current(client).spotify_id
|
||||
playlist_create(client, current_user_id, name)
|
||||
yield playlist_create(client, current_user_id, name)
|
||||
|
||||
|
||||
def playlist_replace(
|
||||
|
Loading…
Reference in New Issue
Block a user