|
07b0199193
|
In a PlaylistNext() handler pass a current song as a copy.
|
2023-10-07 05:20:27 +04:00 |
|
|
2f96976f19
|
In DJHandlers.Status in an anonymous struct removed a pointer to Song.
|
2023-10-05 18:54:44 +04:00 |
|
|
f1eaba016f
|
In DJHandlers.ListenersInc() a code for updating max listeners was replaced by a function call to UpdateCurrentMaxListeners().
|
2023-10-05 18:05:27 +04:00 |
|
|
6ae8a40493
|
In oggtag.go a struct named OggFIle was created, ReadFile turned into a constructor NewOggFile. And GetTag and GetDuration turned into methods.
|
2023-10-05 17:26:13 +04:00 |
|
|
98ed4035a7
|
In ListenersDec() handler added a missing return.
|
2023-10-02 18:09:25 +04:00 |
|
|
64c2868fcf
|
Updated CheckAndUpdateMostListenedSong() func.
|
2023-10-02 15:04:51 +04:00 |
|
|
1990f1c7f0
|
In a PlaylistNext handler return a \n character as well.
|
2023-10-02 15:03:47 +04:00 |
|
|
0519bc979c
|
Status() and LastSong() handlers was removed from main handlers.
|
2023-10-02 03:20:48 +04:00 |
|
|
58b3d18288
|
Pass a SongList instead of instantiating.
|
2023-10-02 03:18:54 +04:00 |
|
|
f9d85d45f5
|
Song_ was renamed to Song. Also added Len() method to a SongList.
|
2023-10-02 03:18:30 +04:00 |
|
|
f0438ff822
|
In ListenersGet() text/plain was replaced by application/json.
|
2023-10-02 02:35:01 +04:00 |
|
|
d2851c6fb8
|
Added http.Error() to a PlaylistNext() handler.
|
2023-10-02 02:29:18 +04:00 |
|
|
f709ac4b02
|
Added a MostListenedSong() handler.
|
2023-10-02 02:28:46 +04:00 |
|
|
8322d2a7a8
|
In Status handler: added missing Content-Type; Added most listened song; Removed with-list query, just return everything; Added http.Error().
|
2023-10-02 02:22:14 +04:00 |
|
|
7cc228968d
|
In handlers made use of oggtag.ReadFile() func. Also updated func names.
|
2023-10-02 01:27:14 +04:00 |
|
|
aaf14e0c83
|
A /status endpoint was added that returns all data available. At this time cur song, listeners cur and peak, and a list of prev songs.
|
2023-10-01 22:07:04 +04:00 |
|
|
96baa42fe0
|
/song endpoint was broken into two, the second one is /songs that returns a list of prev played songs, and /song just a current one.
|
2023-10-01 22:05:39 +04:00 |
|
|
dea283df27
|
Listeners struct was renamed to ListenerCounter.
|
2023-10-01 20:32:07 +04:00 |
|
|
a4f7366213
|
In handlers made use of a SongList.
|
2023-10-01 05:43:52 +04:00 |
|
|
07d11ce3ff
|
A dummy Song handler was added.
|
2023-10-01 03:35:33 +04:00 |
|
|
88b5f21343
|
Added playlist handler.
|
2023-10-01 01:32:57 +04:00 |
|
|
3d2b172deb
|
Replaced unused r arg with _ in handlers.
|
2023-10-01 01:32:17 +04:00 |
|
|
978a2602d8
|
Added handlers used in a radiodj service. Currently just for listeners.
|
2023-09-30 23:59:48 +04:00 |
|
|
978b4c6454
|
Removed unused error returning (error is always nil).
|
2023-09-14 17:59:14 +04:00 |
|
|
a6f92b56da
|
Reorganised Handlers struct fields.
|
2023-09-14 17:58:35 +04:00 |
|
|
eccf0ff4e9
|
Removed unused const FormatISO8601.
|
2023-09-14 17:51:15 +04:00 |
|
|
9ac60e9f28
|
Don't show server start date and time on a page.
|
2023-08-21 18:30:21 +04:00 |
|
|
a1bf9cf30a
|
Use flags instead of config file. Also replaced HttpServer with a new code.
|
2023-08-06 03:17:18 +04:00 |
|
|
877b5d4013
|
Playlist file renamed to playlist.m3u.
|
2023-07-22 22:58:42 +04:00 |
|
|
cac5751ede
|
Removed AssetsFS() since it is not needed anymore.
|
2023-05-27 00:36:03 +04:00 |
|
|
8b439bbd5a
|
Removed httprouter.
|
2023-05-26 23:55:40 +04:00 |
|
|
47bc1a8e02
|
Added sitemap.xml.
|
2023-05-21 22:44:09 +04:00 |
|
|
2987cf4a2a
|
Moved RobotsTxt handler out of Handlers struct.
|
2023-05-21 22:42:17 +04:00 |
|
|
ca4391784a
|
Added /favicon.svg endpoint.
|
2023-05-21 22:35:37 +04:00 |
|
|
95e9d97a22
|
Updated web.Index() call in a handler.
|
2023-03-13 02:12:02 +04:00 |
|
|
6d4a276dd8
|
IcecastLastSongs() (formerly known as IcecastLastPlayedSongs()) args were changed, so let's delete unneeded arg.
|
2023-03-12 21:32:29 +04:00 |
|
|
83cdc222c7
|
Change arav.top to arav.su.
|
2023-02-23 17:49:01 +04:00 |
|
|
edfcb9526b
|
Fixed MIME type to text/html.
|
2023-02-19 22:26:25 +04:00 |
|
|
77183bb14e
|
Added Content-Type header for filelist.
|
2023-02-19 21:41:58 +04:00 |
|
|
aa0d818488
|
Added robots.txt endpoint.
|
2023-02-19 21:22:56 +04:00 |
|
|
182a4c02c9
|
Added reading of filelist.html file from disk.
|
2023-02-19 21:18:36 +04:00 |
|
|
6d26d695ec
|
Pass ListLastNSongs to an Index template in handlers.go.
|
2023-02-07 02:46:10 +04:00 |
|
|
7c5e1465af
|
handlers moved to internal/http. Logging changed to std log. Type RadioHandlers renamed to Handlers.
|
2023-02-07 02:27:30 +04:00 |
|
|
91329ceaec
|
Server moved to internal/http.
|
2023-02-07 02:26:10 +04:00 |
|