1
0
Commit Graph

668 Commits

Author SHA1 Message Date
ee10fc1c9e
Okay, didn't work. Let it be like that for now. 2022-03-31 22:43:39 +04:00
7c67151ee8
Let's try negate it. 2022-03-31 22:42:01 +04:00
75473aff1f
Let's try unless. 2022-03-31 20:12:18 +04:00
8c1fdb0e44
Ah, yes... It doesn't work like that. 2022-03-31 20:09:56 +04:00
88163a6bea
Actually, 2rem would be enough for listeners column. 2022-03-31 20:06:26 +04:00
d243f82c7e
CSS updated for a new last played table. 2022-03-31 20:05:46 +04:00
e1a847f95f
New minor version. 2022-03-31 20:04:27 +04:00
f51b623b08
Updated main.js for a new last played layout. 2022-03-31 20:03:45 +04:00
52696c026e
New last played table rows: time, listeners and song. If there was no listeners then this col is empty. 2022-03-31 20:02:17 +04:00
0844b917dc
Now last played songs are consist of time, listeners and song name combined with artist. 2022-03-31 20:01:13 +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
d60da459ac
This way returns look just prettier. 2022-03-31 18:22:20 +04:00
4b5289223d
Remove whitespace in IcecastLastPlayedSongs. 2022-03-31 18:14:20 +04:00
a9b6e5a056
Compute lastPlayedCache length once a call. 2022-03-31 18:13:49 +04:00
d3563abba1
Remove inteermidiate variable and instantiate struct in return statement. 2022-03-31 18:11:04 +04:00
0d113d30a1
Replace Sprintf with way more performant simple concatenation. 2022-03-31 18:05:47 +04:00
b077fa053c
It is better to call here lastPlayedSongs directly. 2022-03-31 18:02:04 +04:00
0983a0f0c5
This conversion to UTC is excessive. 2022-03-31 17:58:42 +04:00
790a507f0d
Comparison by time is enough. 2022-03-31 17:55:36 +04:00
ccabc859e9
Nah, no shared folder needed. 2022-03-31 17:11:51 +04:00
dece9cc154
New path to radio_filelist.html. 2022-03-31 17:10:37 +04:00
9d58b16d55
Fixed a typo in a word Scheme. 2022-03-31 17:06:11 +04:00
ee96af31ad
Added a robots.txt file and a handler for it. 2022-03-31 17:01:51 +04:00
2b18204a6c
Changed start_time_local field to time in main.js. 2022-03-31 16:27:17 +04:00
7228ab9ff6
Move to version model based on year.week.minor. 2022-03-31 15:59:07 +04:00
032fde9648
Let's add -v flag that will show current version. 2022-03-31 15:57:52 +04:00
1dad2ffa5f
Removed another forgotten debug println. 2022-03-31 15:45:49 +04:00
b591346177
Removed forgotten debug println. 2022-03-31 15:44:17 +04:00
970efd7d9d
Initialising last played cache. 2022-03-31 15:40:18 +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
3b51fffa60
Added last played list cache with updating using Inotify watcher. 2022-03-31 15:35:04 +04:00
3da4bd9aed
Copied Inotify watcher with addition of ModMask. 2022-03-31 15:33:55 +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
d900d78800
Oh, right used utilities must be allowed as well. 2022-03-31 03:38:41 +04:00
d3d0d2d186
Added /usr/bin/bash to allowed executables. 2022-03-31 03:19:15 +04:00
e1310e211e
Implemented timezone conversion in handlers. 2022-03-31 02:55:34 +04:00
00c4b5a8b3
Added timezone for TZ converting purposes. 2022-03-31 02:55:05 +04:00
6f152673f2
Added ToClientTimezone() function to convert time to client's local time. 2022-03-31 02:54:04 +04:00
a21a361167
Changed path to unix socket in NGiNX config. 2022-03-31 02:20:32 +04:00
b4cbb236aa
Fixed an error in a time format. 2022-03-31 02:16:34 +04:00
942bad3b9d
It should be server_start_date. 2022-03-31 02:16:15 +04:00
9d2e52aec3
Added missing JSON Content-Type. 2022-03-31 02:15:16 +04:00
4740f9ddc3
Well, this Jade implementation works really weird. while you must specify a name for item in each you must NOT use it, lol. Now this works, kinda. Strange thing is that if else statement doesn't support comparison operators. And as stated in examples such code as len(items) >0 should work, but no! It doesn't. Okay, at least now it works. 2022-03-31 02:14:54 +04:00
f605475f75
Working radio online status. 2022-03-31 02:11:23 +04:00
b258e6f7ef
Added Xiph directory link over a player. 2022-03-31 02:10:33 +04:00
c68c99e528
Return error for IcecastLastPlayedSongs. 2022-03-30 20:21:18 +04:00
306ddb2b53
Error logging for last played songs. 2022-03-30 20:20:30 +04:00
2664d24c5f
Uncommenting last-played table. 2022-03-30 20:02:07 +04:00