|
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 |
|
|
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 |
|
|
790a507f0d
|
Comparison by time is enough.
|
2022-03-31 17:55:36 +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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
97935ac3e3
|
Commenting out lst-played.
|
2022-03-30 19:58:24 +04:00 |
|
|
924245e9c9
|
A little refactor. Better errors handling.
|
2022-03-30 19:13:55 +04:00 |
|
|
588be2c2bb
|
Updated favicon.
|
2022-03-30 18:51:55 +04:00 |
|
|
66be1c0e97
|
Move font's license out of assets dir.
|
2022-03-30 18:49:20 +04:00 |
|
|
f42c239b27
|
Uhm, okay. it is actually .Songs.
|
2022-03-10 00:37:18 +04:00 |
|
|
db5ec743bd
|
Should work now.
|
2022-03-10 00:33:45 +04:00 |
|
|
deb6a2088e
|
Fixing a template.
|
2022-03-10 00:30:47 +04:00 |
|
|
85751b4cd8
|
Another try to fix template.
|
2022-03-10 00:29:34 +04:00 |
|
|
c6c06fa014
|
Found a typo.
|
2022-03-10 00:22:37 +04:00 |
|
|
abb4c91dee
|
Uncomment even more in a template.
|
2022-03-10 00:19:30 +04:00 |
|
|
8d4ef85e99
|
Another fix for index.jade.
|
2022-03-10 00:17:58 +04:00 |
|
|
91f9c1c17b
|
It yells at me telling that ] is invalid.
|
2022-03-10 00:16:34 +04:00 |
|
|
fb17938fed
|
Fixed vars in template.
|
2022-03-10 00:13:30 +04:00 |
|
|
72b026c04f
|
Uncomment more in index.jade.
|
2022-03-10 00:11:45 +04:00 |
|
|
9628a41a44
|
Okay, looks like it's a ine 39.
|
2022-03-08 03:32:54 +04:00 |
|
|
d63c299391
|
Now it failed again with ] character.
|
2022-03-08 03:31:26 +04:00 |
|
|
76f3f17235
|
Okay, then these lines.
|
2022-03-08 03:30:23 +04:00 |
|
|
e58cb07d1d
|
Okay, now it compiles. Let's uncomment line 52.
|
2022-03-08 03:29:07 +04:00 |
|
|
38152642d8
|
Interesting now function song is undefined.
|
2022-03-08 03:27:58 +04:00 |
|
|
4c941c6847
|
Let's comment out everything and debug it step by step.
|
2022-03-08 03:26:36 +04:00 |
|
|
050fc18949
|
Let's try without this code at all.
|
2022-03-08 03:22:32 +04:00 |
|
|
e3c413d3c7
|
Weird errors it gives. And it just that Song() func that doesn't exist anymore for IcecastStatus struct.
|
2022-03-08 03:21:23 +04:00 |
|
|
35c65bf528
|
Does it work at all without that?
|
2022-03-08 03:16:32 +04:00 |
|
|
1e392ba387
|
Why it doesn't just work... Oh...
|
2022-03-08 03:15:01 +04:00 |
|
|
f95685ec67
|
function "isDateNA" not defined
|
2022-03-08 03:07:34 +04:00 |
|
|
c06eba7341
|
Unexpected ! in if.
|
2022-03-08 03:05:54 +04:00 |
|
|
092d07a3a6
|
WTF this Jade doesn't support comparing?
|
2022-03-08 03:04:56 +04:00 |
|
|
89c587e5ac
|
I don't get it...
|
2022-03-08 03:02:25 +04:00 |
|
|
e5c1247ebd
|
Maybe it will work.
|
2022-03-08 03:01:26 +04:00 |
|
|
72885b0ccf
|
WTF does mean unexpected ! operand? Puto...
|
2022-03-08 02:51:53 +04:00 |
|
|
5589397d64
|
Kurwa, index.jade.
|
2022-03-08 02:50:25 +04:00 |
|
|
6a44747bdd
|
Let's try this.
|
2022-03-08 02:49:01 +04:00 |
|
|
8b34a5bddf
|
Now it tells me of unexpected ! operand...
|
2022-03-08 02:46:40 +04:00 |
|