aboutsummaryrefslogtreecommitdiff
path: root/upload.go
Commit message (Collapse)AuthorAgeFilesLines
* bumble up a possible error creating the upload directoryFlorian Fischer2023-07-311-3/+5
|
* fix applyTimeBonus by always using Song pointersFlorian Fischer2023-07-221-1/+1
| | | | | | | | | | | 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.
* add more song info and preparations for advanced searchFlorian Fischer2023-07-161-2/+2
|
* introduce Player interface to allow multiple player implementationsFlorian Fischer2023-07-011-1/+1
|
* log file path on upload errorFlorian Fischer2023-05-301-2/+3
|
* refactor title and artist detectionFlorian Fischer2023-05-281-4/+15
|
* include OS error in FatalfFlorian Fischer2023-05-281-2/+2
|
* continue playback when adding a song to an empty queueFlorian Fischer2023-05-211-1/+0
| | | | | | | Now WRMS only switches the playback state when an admin calls the /playpause endpoint. When the queue runs out of songs the state is kept and continues when a new song is added.
* create upload dir parentsFlorian Fischer2023-05-211-1/+1
|
* use io.ReadAll instead of the deprecated ioutil.ReadAllFlorian Fischer2023-05-211-2/+2
|
* add OnSongFinished backend hook allowing to remove uploaded songsFlorian Fischer2023-05-211-0/+6
|
* implement the upload backendFlorian Fischer2023-05-211-0/+83