aboutsummaryrefslogtreecommitdiff
path: root/playlist.go
Commit message (Collapse)AuthorAgeFilesLines
* fix applyTimeBonus by always using Song pointersFlorian Fischer2023-07-221-1/+2
| | | | | | | | | | | Storing song objects in the Songs slice and using pointers to the underlying array slots breaks if the underlying array must be grown. When the array is grown the objects are copied to the new array and the pointers used in queue point to the old objects. This causes that Playlist.applyTimeBonus may not correctly apply to the most recent list of songs. This is fixed by always using Song pointers.
* backend: support an incremental time bonusFlorian Fischer2023-07-211-0/+8
|
* implement playlist in order traversalFlorian Fischer2023-07-211-0/+13
| | | | This ensures that the initial reported song array is in order.
* allow admins to skip or delete songsFlorian Fischer2023-05-311-0/+5
|
* llog: use variable argument listFlorian Fischer2022-12-281-5/+4
| | | | | | | Mirror more closely the fmt interface and reduce the verbosity of the log call sites. Additionally the log message is only created if we are actually going to log it.
* implement local storage backendv0.0.2-alphaFlorian Fischer2022-12-231-1/+1
| | | | | | | | The 'local' backend is able to serve the music from a path specified by '-server-music-dir'. Add command line options to select the server port as well as a list of backends.
* add logging and tests fo playlistFlorian Fischer2022-07-271-1/+9
|
* add youtube backendFlorian Fischer2022-07-261-0/+3
|
* initial WIP commitFlorian Fischer2022-07-211-0/+48