| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | slightly improve _next log message | Florian Fischer | 2024-03-16 | 1 | -1/+1 |
| | | |||||
| * | fix broken indices in songs after Playlist.OrderedList() | Florian Fischer | 2023-08-08 | 2 | -2/+36 |
| | | | | | | | | | | | 04205039f24ea6e71d2ce94c7cb7e1395f95179e was not enough to fix the ordered list issue introduced by 26f0033ebb5f8e7c204a042709e3dfa885eac868. heap.Pop uses Swap internally which modifies as songs index. We fix the broken indices by overriding them after the ordered list was created. | ||||
| * | run go fmt | Florian Fischer | 2023-07-31 | 1 | -1/+0 |
| | | |||||
| * | add error reporting when signalling mpv failed | Florian Fischer | 2023-07-31 | 1 | -1/+4 |
| | | |||||
| * | panic when data to send to a client can not be marshaled | Florian Fischer | 2023-07-31 | 3 | -14/+7 |
| | | |||||
| * | bumble up a possible error creating the upload directory | Florian Fischer | 2023-07-31 | 2 | -4/+6 |
| | | |||||
| * | ignore staticcheck for deprecated strings.Title function | Florian Fischer | 2023-07-31 | 1 | -1/+2 |
| | | | | | We know the input therefore it is totally save to use strings.Title. | ||||
| * | make time bonus config value usable through yaml | Florian Fischer | 2023-07-31 | 4 | -8/+9 |
| | | |||||
| * | use Logf() instead of Log(fmt.Sprintf()) | Florian Fischer | 2023-07-31 | 1 | -2/+2 |
| | | |||||
| * | use unicode symbols to show song details | Florian Fischer | 2023-07-31 | 1 | -3/+6 |
| | | |||||
| * | remove select on click | Florian Fischer | 2023-07-31 | 1 | -4/+4 |
| | | | | | | The select on click is awkward on mobile remove it and let the browser handle the form manipulation. | ||||
| * | implement LoadPlaylist for mockPlayer | Florian Fischer | 2023-07-31 | 1 | -0/+1 |
| | | |||||
| * | fix Playlist.OrderedList() breaking the index of all songs | Florian Fischer | 2023-07-31 | 2 | -1/+8 |
| | | | | | | | | | | | | Since 26f0033ebb5f8e7c204a042709e3dfa885eac868 and using Song pointers the copied Playlist in OrderedList actually holds the same Songs as the originally one. This and the side effects in Playlist.Pop (setting the index to -1) breaks the heap because all songs in the original queue now have a invalid index (-1). This is fixed by removing the side effect in Playlist.Pop(). | ||||
| * | implement initial loading of spotify playlists | Florian Fischer | 2023-07-31 | 6 | -5/+95 |
| | | | | | | | | | Playlist can now be added to the initial play queue with the -playlists command line flag or the playlists yaml key in the config file. To load a spotify playlist the link obtained when sharing the playlist from spotify is used. | ||||
| * | move song and connection code into separate files | Florian Fischer | 2023-07-31 | 3 | -177/+195 |
| | | |||||
| * | update dependencies | Florian Fischer | 2023-07-31 | 3 | -101/+11 |
| | | | | | Switch to my own librespot-golang fork. | ||||
| * | fix deadlock when ordering the broadcasted events | Florian Fischer | 2023-07-28 | 2 | -31/+51 |
| | | | | | | | | Do not increment the global event id when sending "private" events like the initial commands and search results. Fixes: a93c5826172f835db604a2646d470ecfd72484cf | ||||
| * | do not increment the global event count when reporting search events | Florian Fischer | 2023-07-28 | 2 | -4/+4 |
| | | |||||
| * | fix copying of the playlist when creating an ordered list | Florian Fischer | 2023-07-28 | 2 | -1/+18 |
| | | | | | | | Go's copy builtin does only copy min(len(dest), len(src)) elements, since we create an empty destination slice with a big enough capacity copy does not actually copy anything. | ||||
| * | add debug output for event ordering | Florian Fischer | 2023-07-28 | 1 | -0/+2 |
| | | |||||
| * | implement advanced search for the spotify backend | Florian Fischer | 2023-07-23 | 2 | -29/+89 |
| | | | | | | The librespot API does not allow advanced search therefore we filter the results according to our advanced patterns. | ||||
| * | fix typo in title form name | Florian Fischer | 2023-07-23 | 1 | -1/+1 |
| | | |||||
| * | implement advanced local search | Florian Fischer | 2023-07-23 | 2 | -4/+31 |
| | | |||||
| * | show votes and the time bonus in the song details | Florian Fischer | 2023-07-23 | 3 | -5/+16 |
| | | |||||
| * | fix applyTimeBonus by always using Song pointers | Florian Fischer | 2023-07-22 | 10 | -76/+96 |
| | | | | | | | | | | | | 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 test for flipping a vote | Florian Fischer | 2023-07-22 | 1 | -0/+17 |
| | | |||||
| * | propagate the time bonus to the client and apply it when adding new songs | Florian Fischer | 2023-07-22 | 2 | -1/+16 |
| | | |||||
| * | fixup! backend: support an incremental time bonus | Florian Fischer | 2023-07-22 | 1 | -6/+6 |
| | | |||||
| * | increment the event id when holding the lock and the actual event occurs | Florian Fischer | 2023-07-22 | 1 | -18/+20 |
| | | |||||
| * | backend: support an incremental time bonus | Florian Fischer | 2023-07-21 | 5 | -1/+18 |
| | | |||||
| * | implement playlist in order traversal | Florian Fischer | 2023-07-21 | 3 | -11/+50 |
| | | | | | This ensures that the initial reported song array is in order. | ||||
| * | do not remove active connections when removing stale ones | Florian Fischer | 2023-07-16 | 2 | -6/+20 |
| | | | | | | | | If the connection is renewed by the client removing the old connection and adding the new one is racy. Fix this by remembering a connection generation number and only to prevent removing the new connection. | ||||
| * | add more song info and preparations for advanced search | Florian Fischer | 2023-07-16 | 8 | -32/+81 |
| | | |||||
| * | fixup! client: make songs expandable to show more information | Florian Fischer | 2023-07-06 | 1 | -2/+2 |
| | | |||||
| * | fixup! client: add expandable advanced search inputs | Florian Fischer | 2023-07-06 | 1 | -0/+3 |
| | | |||||
| * | tick the event endpoint | Florian Fischer | 2023-07-06 | 1 | -1/+1 |
| | | |||||
| * | client: add expandable advanced search inputs | Florian Fischer | 2023-07-06 | 1 | -1/+8 |
| | | |||||
| * | client: make songs expandable to show more information | Florian Fischer | 2023-07-06 | 1 | -5/+55 |
| | | |||||
| * | add admin-password and button to become admin from the client | Florian Fischer | 2023-07-03 | 3 | -12/+41 |
| | | |||||
| * | do not change playback state when receiving a stop event | Florian Fischer | 2023-07-02 | 1 | -5/+1 |
| | | | | | Receiving stop means WRMS ran out of songs regardless of its playing state. | ||||
| * | remove vote info when song is played | Florian Fischer | 2023-07-02 | 1 | -0/+2 |
| | | | | | | This fixes a bug where songs added a second time have bugged vote controls. | ||||
| * | add double add test | Florian Fischer | 2023-07-02 | 1 | -0/+15 |
| | | |||||
| * | add simple wrms test | Florian Fischer | 2023-07-01 | 2 | -1/+88 |
| | | |||||
| * | add PL prefix and an additional playlist test | Florian Fischer | 2023-07-01 | 1 | -4/+50 |
| | | |||||
| * | introduce Player interface to allow multiple player implementations | Florian Fischer | 2023-07-01 | 7 | -33/+48 |
| | | |||||
| * | switch from websockets to SSE | Florian Fischer | 2023-06-30 | 3 | -52/+41 |
| | | |||||
| * | fix double _next call and move mpv termination to Next | Florian Fischer | 2023-06-30 | 2 | -11/+17 |
| | | | | | | Due to an logic error was _next() a second time from runMpv after the mpv subprocess was terminated by the first Next() call. | ||||
| * | print the stacktrace before calling log.Fatalln | Florian Fischer | 2023-06-30 | 1 | -0/+2 |
| | | |||||
| * | add debug message when terminating mpv subprocess | Florian Fischer | 2023-06-30 | 1 | -0/+1 |
| | | |||||
| * | remember the current song before waiting for mpv | Florian Fischer | 2023-06-30 | 1 | -1/+4 |
| | | |||||
