Allow duplicates in PUBLIC lists
See #152 (closed) for the initial issue (yes, it's 6 years old, deal with it.)
WHY?! Why resurrect an issue from ancient times?
Right now songs can be added more than once by the operator in the current playlist.
Users cannot add the same song more than once in the public playlist.
This was fine until now for public karaokes where people sing together.
But the classic mode arrived.
Classic mode, for those who're asleep in the back row, adds a pause screen inbetween songs, allowing users to pass the mic to others and prepare for their great moment.
However, not everyoen wants to share the microphone with someone else in this configuration : people want to sing their song alone.
But right now they can't add a song that's already in the public playlist.
Example :
- I want to sing Dernière Danse.
- @leonekmi wants to sing Dernière Danse too but doesn't like me so they want to sing it by themselves alter on.
The problem
There are many reasons why we didn't allow this before. It fucks up some information or makes them extremely hard to guess.
- When the song will air next
- When it has recently aired
- How to calculate upvotes
- ...and probably a varied range of other things I can't think about at the moment.
What we can do.
We can try enabling it for everyone, not just admins, and see where it goes.
We can add a safeguard to make sure a person can't add the same song twice, but two or more people can.
Modified code imply the addKaraToPlaylist function as well as when to grey out the + button in the public interface.
Ideas ?