EbbLabs/python-tidal

Wrong limit parameter used for v2 playlist endpoint

Closed this issue · 2 comments

I have installed recent v. 0.8.5, but still getting a lo of errors. I had to downgrade to 0.8.3.

The log is here.

Hello,

yes, there are some changes needed in mopidy-tidal before it works with the latest versions of tidalapi.

Specifically related to the limit parameter, that cannot exceed 50 items:

2025-08-11 12:23:16,573 INFO [1984:TidalBackend-3 (_actor_loop)] mopidy_tidal.playlists: Calculating playlist updates..
2025-08-11 12:23:16,742 INFO [1984:mopidy-tidal-playlists-_0] tidalapi.request: Request resulted in exception 400 Client Error: Bad Request for url: https://api.tidal.com/v2/my-collection/playlists?sessionId=...&countryCode=IT&limit=100&folderId=root&offset=0&includeOnly=PLAYLIST
2025-08-11 12:23:16,760 INFO [1984:mopidy-tidal-playlists-_2] tidalapi.request: Request resulted in exception 400 Client Error: Bad Request for url: https://api.tidal.com/v2/my-collection/playlists?sessionId=...&countryCode=IT&limit=100&folderId=root&offset=200&includeOnly=PLAYLIST
2025-08-11 12:23:16,769 INFO [1984:mopidy-tidal-playlists-_1] tidalapi.request: Request resulted in exception 400 Client Error: Bad Request for url: https://api.tidal.com/v2/my-collection/playlists?sessionId=...&countryCode=IT&limit=100&folderId=root&offset=100&includeOnly=PLAYLIST
2025-08-11 12:23:16,797 INFO [1984:mopidy-tidal-playlists-_4] tidalapi.request: Request resulted in exception 400 Client Error: Bad Request for url: https://api.tidal.com/v2/my-collection/playlists?sessionId=...&countryCode=IT&limit=100&folderId=root&offset=400&includeOnly=PLAYLIST
2025-08-11 12:23:16,801 INFO [1984:mopidy-tidal-playlists-_3] tidalapi.request: Request resulted in exception 400 Client Error: Bad Request for url: https://api.tidal.com/v2/my-collection/playlists?sessionId=...&countryCode=IT&limit=100&folderId=root&offset=300&includeOnly=PLAYLIST
2025-08-11 12:23:19,372 INFO [1984:TidalBackend-3 (_actor_loop)] pykka: Exception returned from TidalBackend (urn:uuid:d235afe1-3e71-4986-9f50-f3dcb348b2a4) to caller:

Will update mopidy asap with these changes as well.

Closing, as this is specifically for mopidy-tidal only.