1
0
Commit Graph

466 Commits

Author SHA1 Message Date
eaea8df71e
Log only critical errors. Level 2 produces sentences like Decoding some/song.ogg ended: Ogg.End_of_stream for every song. 2023-03-13 04:02:05 +04:00
31a892e43d
Remove log section from config, since it is not used anymore. 2023-03-13 03:31:40 +04:00
aac6d8e43a
Logically separate handlers with new lines in main.go. 2023-03-13 03:28:01 +04:00
d1b1d2537f
Set min ver for go dependency. Set GOPATH. Set PREFIX. 2023-03-13 03:18:00 +04:00
285b9f75e2
First, learned about := operator that means assign once. Second, added PREFIX var. Third, do not copy LICENSE file. 2023-03-13 03:17:14 +04:00
acd0087ddf
Oh, if http server stop fail, then most listened song will not be saved. Fix that. 2023-03-13 02:20:57 +04:00
4e16f2b3ed
Add *.log file to .gitignore. 2023-03-13 02:15:25 +04:00
7f5a3bdb7f
Let's actually add a test config and a testing run target in makefile. 2023-03-13 02:14:52 +04:00
dd1469c957
Added .right class to align a text to right. 2023-03-13 02:12:38 +04:00
8e0d5e4fb7
Date format was moved out to a const. 2023-03-13 02:12:21 +04:00
95e9d97a22
Updated web.Index() call in a handler. 2023-03-13 02:12:02 +04:00
184561ab29
Convert date of a most listened song to client's local time. 2023-03-13 02:11:33 +04:00
bdf778cc67
Version up to 23.10.1. 2023-03-13 01:54:55 +04:00
0fffbce646
First try to load currently playing song. 2023-03-13 01:53:52 +04:00
2e60f2bb8a
Check for empty prev song. 2023-03-13 01:42:24 +04:00
f24953ae7c
Amount of listeners of next song is actually how much listeners was by the end of a prev song. 2023-03-13 01:42:00 +04:00
3207395b67
Load and store most listened song. 2023-03-13 01:41:13 +04:00
1ab82003e6
Catch SIGSEGV as well. 2023-03-13 01:40:56 +04:00
1b91f70edd
Added most_listened_song_file_path option. 2023-03-13 01:40:30 +04:00
2b47748c30
Show most listened song on a page. 2023-03-13 00:04:53 +04:00
e84a811a1d
Update most listened song. 2023-03-13 00:04:34 +04:00
8f16b5d96f
Implemented a functionality for storing and showing most listened song. 2023-03-13 00:03:59 +04:00
53d24c5781
Store current song in a separate variable. A base for most listened song functionality. 2023-03-12 22:25:58 +04:00
63fcb36e60
Nah, 3KiB should be enought to read. 2023-03-12 22:06:15 +04:00
341ea73e97
Check if tbody is present and create it if doesn't. 2023-03-12 21:57:03 +04:00
6b1f2e76e3
Do not remove first row while there is less than 10 rows. 2023-03-12 21:50:06 +04:00
d48972caa0
Okay, now let's return original idea of adding songs one by one. 2023-03-12 21:48:01 +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
517dd0e534
Fixed last songs displaying. 2023-03-12 21:31:18 +04:00
1ebecc91d9
Keep last songs section even if there are no songs. Otherwise a JS code will be broken without further bloating. 2023-03-12 04:05:07 +04:00
0409da3ca3
Oh, last commit led to loading of full list of prev songs. Let's remove this code. 2023-03-12 04:01:32 +04:00
10048c671e
Prevent reading latest song from a log right after a service started. 2023-03-12 03:53:09 +04:00
e73a9a3b12
Added my full name in a footer. 2023-03-12 03:06:02 +04:00
24b78e00ff
Put actual number of last songs displayed in a privacy statements. 2023-03-12 02:58:51 +04:00
ab19f045d2
Set log flag to only pring source file name and line. 2023-03-12 02:38:34 +04:00
028708e5aa
Changed version to 23.10.0. 2023-03-12 02:37:48 +04:00
db02047268
Now lastPlayedCache's initial capacity is not hardcoded to 10. And it will be filled slowly, instead of initial read of last N songs from a playlist.log. 2023-03-12 02:19:07 +04:00
47e3ff37ba
Reduced bufferSize because 16KiB is more than enough for a max of 10 songs. 2023-03-12 02:16:55 +04:00
38f995302d
Added optional dependencies to PKGBUILD. 2023-03-12 01:28:34 +04:00
71bbcd1edc
Set normalization to its current values, only threshold was changed from -75. to -40.. 2023-03-12 01:03:46 +04:00
e4ca8e424d
Change go version back to 1.17 what the program was initially made with. 2023-03-12 01:01:37 +04:00
6424702375
Do not keep bin dir since it is being created at compile time. 2023-03-12 00:58:59 +04:00
970fd2bb6a
Version up to 23.8.1. 2023-02-25 14:53:54 +04:00
9a27077d55
Made use of replaygain and tweaked normalization, so my radio must become louder. 2023-02-25 14:53:31 +04:00
0db75f30a2
Version up to 23.8.0. 2023-02-23 17:49:59 +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
0339ce27f6
Check if jade compiler installed in PKGBUILD. 2023-02-19 22:08:55 +04:00
4ef674dcb7
Upped go version to 1.20 in go.mod. 2023-02-19 21:49:19 +04:00
297b8d5985
Removed ability to set out name for filelist.html. 2023-02-19 21:42:21 +04:00