Skip to content

Resolve "Add confirmation when adding a song to a playlist if it is already in the playlist"

Closes #784 (closed)

Video recording

Return a validation error on PLT create / playlist add many if the given tracks are already in the target playlist and a allowDuplicate/allowDuplicates flag is not specified in the request body.

Display a message on add-to-playlist / playlist batch add with buttons which allow adding duplicate items to the targeted playlist.


Screenshots (I tweaked with the frontend code in order to generate extra entries for some of these):

(unchanged) Before clicking the 'add' button:

modal-before-add

After trying to add a track to a playlist that already contains it. 'Cancel' dismisses the dialog, 'Add anyways' adds the song and dismisses the dialog:

Screenshot_20190423_204425

After trying to add songs from the current queue (a few duplicated songs):

Screenshot_20190423_204445

After trying to add songs from the current queue (many duplicate songs):

Screenshot_20190423_205228

Edited by Qasim Ali

Merge request reports