Allow playlists that user follows to be listed
This commit is contained in:
parent
f4bdb76c72
commit
2e75b3418b
1 changed files with 10 additions and 10 deletions
|
|
@ -243,7 +243,7 @@ class SpotifyClient:
|
|||
|
||||
while results:
|
||||
for playlist_data in results['items']:
|
||||
if playlist_data['owner']['id'] == self.user_id or playlist_data['collaborative']:
|
||||
# Include ALL playlists (owned, collaborative, AND followed)
|
||||
logger.info(f"Fetching tracks for playlist: {playlist_data['name']}")
|
||||
tracks = self._get_playlist_tracks(playlist_data['id'])
|
||||
playlist = Playlist.from_spotify_playlist(playlist_data, tracks)
|
||||
|
|
@ -285,7 +285,7 @@ class SpotifyClient:
|
|||
|
||||
batch_count = 0
|
||||
for playlist_data in results['items']:
|
||||
if playlist_data['owner']['id'] == self.user_id or playlist_data['collaborative']:
|
||||
# Include ALL playlists (owned, collaborative, AND followed)
|
||||
# Create playlist with empty tracks list for now
|
||||
playlist = Playlist.from_spotify_playlist(playlist_data, [])
|
||||
playlists.append(playlist)
|
||||
|
|
|
|||
Loading…
Reference in a new issue