Fix/spotify api feb 2026#170
Open
mrkkr wants to merge 3 commits into
Open
Conversation
- Use playlist_items instead of playlist_tracks, rename 'track' key to 'item' - Refactor _fetch_all_from_spotify_in_chunks to return raw pages, letting callers handle their own response parsing - Extract _get_tracks_from_spotify_favorites as standalone function - Make isrc_match handle missing external_ids gracefully - Add unit tests for pagination, playlist fetching, and favorites fetching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated
spotify_to_tidalto be compatible with Spotify Web API changes from February 2026.Changes Made:
1. API Endpoint Migration (
src/spotify_to_tidal/sync.py)GET /playlists/{id}/tracks(deprecated)GET /playlists/{id}/items(new endpoint)spotipy.playlist_items()calls with direct HTTP requests using the new endpoint2. Removed Deprecated Fields (
src/spotify_to_tidal/sync.py)external_ids(isrc)from query fields (no longer available in API response)isrc_match()function to handle missing ISRC dataname, album.name, artists, track_number, duration_ms, id3. Type Definitions Update (
src/spotify_to_tidal/type/spotify.py)Optional:available_markets,external_ids,linked_from,popularity,followers,genres4. Error Handling Improvements (
src/spotify_to_tidal/sync.py)NoneitemsTesting
/playlists/{id}/itemsendpoint