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

Remove duplicates before pushing new songs to Deezer #40

Closed fdarveau closed 2 years ago

fdarveau commented 2 years ago

When updating a playlist on Deezer with a list of tracks IDs containing duplicates, the Deezer API returns the following error : plugins - ERROR - {'type': 'ParameterException', 'message': 'This song already exists in this playlist', 'code': 500} (plugins.py:291).

The small change in this PR removes duplicate IDs from the list of tracks pushed to the Deezer API to prevent this error.

XDGFX commented 2 years ago

Perfect thanks! Sorry I missed this until now :)