XDGFX / ultrasonics

Sync music playlists between all your music services. Do more with your music.
GNU General Public License v3.0
218 stars 18 forks source link

update deezer lists handling by using the 'next' property #23

Closed fdarveau closed 3 years ago

fdarveau commented 3 years ago

I had an issue where the Deezer API returned only 94 tracks from my playlist with over 400 tracks. After looking into it, it seems Deezer excluded some tracks from the first request, which expected 100 tracks to continue calling the API.

The Deezer API returns a "next" property containing the full URL to call to continue through the paging without having to handle indices, so I have updated the plugin to call that URL if the response contains it.

XDGFX commented 3 years ago

Sorry for the delayed response! This looks good, I'll try test it soon and merge! Thank you!