Closed nclavaud closed 5 years ago
This seems like a lot of code for a missing parameter. Maybe it'd be better to make the melikeyradio:currentPlaylist:update a bit more robust, and call it when loading the fixtures.
Plus, this won't handle the case where there simply is no playlist.
Or maybe using a parameter for this is simply not a good approach. I dunno.
Sure it's a hack. Best option IMO would be to be able to star / flag the main playlist.
So old :wave:
If playlist_id is not set in the app parameters, the main page will fail with error code 500. This fix will retrieve the playlist with the lowest id instead when no playlist_id has been set.
Fixes issue #21