1
0
Commit Graph

18 Commits

Author SHA1 Message Date
74ae6f4213
Now index template is a variable. 2022-05-24 19:41:04 +04:00
6155b593b2
Robots handler removed. 2022-05-24 18:41:50 +04:00
a335ae4803
Web dir with a template and assets was moved off to web directory in root. 2022-05-24 18:29:15 +04:00
3ec15fbd2a
Now Index page will be shown even if Icecast status cannot be retrieved. 2022-05-24 18:26:59 +04:00
6f607c830e
Use time format specified in radio package. 2022-04-02 04:29:58 +04:00
db8e8c3ebf
Forgot to change time format in Index handler as well. 2022-04-01 23:35:14 +04:00
4f3993515a
Changed displayed on-air since date to RFC1123. 2022-04-01 20:43:10 +04:00
93f50458ec
Forgot about ReadFile() method of embed.FS. 2022-03-31 18:34:33 +04:00
981bbd8968
In this case it is safer to compare with Time field. What if it is a problem with just this song? 2022-03-31 18:24:41 +04:00
ee96af31ad
Added a robots.txt file and a handler for it. 2022-03-31 17:01:51 +04:00
70580298d2
Rewrote LastSong handler using caching IcecastLastSong function. And IcecastLastPlayedSongs is using cache as well. Now it takes between 300 nanoseconds to 2 microseconds to get a list of last songs. 2022-03-31 15:39:51 +04:00
80d618347e
Oh, oops. range copies values, that's why nothing happens. Use good old for now. 2022-03-31 04:02:49 +04:00
1e7819e1aa
Hmm, time conversion fails, let's see what happened. 2022-03-31 03:45:59 +04:00
e1310e211e
Implemented timezone conversion in handlers. 2022-03-31 02:55:34 +04:00
9d2e52aec3
Added missing JSON Content-Type. 2022-03-31 02:15:16 +04:00
306ddb2b53
Error logging for last played songs. 2022-03-30 20:20:30 +04:00
924245e9c9
A little refactor. Better errors handling. 2022-03-30 19:13:55 +04:00
6ff024b25e
Initial commit. 2022-03-08 01:17:24 +04:00