brownan / G2

Internet Jukebox web-app. Run your own radio station with a shared playlist
15 stars 8 forks source link

"Hard" and "soft" time limits #2

Open brownan opened 13 years ago

brownan commented 13 years ago

In addition to the current limit on the number of songs on the playlist, I want to define time limits as well:

Hard limit: A user can never occupy more than this many minutes of song time on the playlist

Soft limit: A user may add a song that causes their total time to exceed this limit, but they cannot add any more songs after that.

The reasoning is, if a user adds a 2 hour mix, they shouldn't be able to add any more songs. However, a user should still be able to add several shorter songs (up to a limit). The hard limit could be something like 2 hours, and the soft limit could be more like 30 or 45 minutes.

andrzej-bieniek commented 13 years ago

I think only hard limit would be useful, to give a fair change to everyone. 'Soft limit' is kind of similar to PLAYLIST_MAX which is already implemented.