1
0
Commit Graph

66 Commits

Author SHA1 Message Date
8079058b5c
Added a handler for SIGHUP signal that is used for playlist reloading. 2023-10-05 17:37:13 +04:00
8587225dfc
Added SIGABRT to doneSignal. 2023-10-05 17:26:48 +04:00
d0722131df
Added handlers and flags and instantiated all need stuff. Removed flags for icecast. 2023-10-02 03:16:17 +04:00
698d7787e6
A separate executable dwelling-radiodj was removed. 2023-10-02 03:13:39 +04:00
1b38c5d86c
Added a /mostlistenedsong endpoint. 2023-10-02 02:08:38 +04:00
7e4ca6990b
Removed Sub for a /playlist endpoint. 2023-10-02 02:08:16 +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
9f361be6c4
On SIGHUP reload a playlist file. 2023-10-01 06:38:21 +04:00
ae4b2c9dee
In radiodj main fixed loading of an MLS file. 2023-10-01 06:10:27 +04:00
59d2c1dbf9
Just found a typo in a directory name. 2023-10-01 05:55:01 +04:00
5a058aa706
Added most listened song and song list length. Also removed a year 2022 from a version string. 2023-10-01 04:17:49 +04:00
07d11ce3ff
A dummy Song handler was added. 2023-10-01 03:35:33 +04:00
ca33de09cc
Added a playlist instance and pass a PlaylistNext handler. 2023-10-01 01:33:55 +04:00
8677af243c
Added main for a radiodj service. 2023-10-01 00:00:39 +04:00
fea96118bc
Set a new path to radio files (where playlists, filelist, and music are stored). 2023-09-17 19:15:56 +04:00
c020031127
Do not overwrite mostlistenedsong file if a song wasn't changed. 2023-09-10 18:23:06 +04:00
76b3e2e8ad
For some log messages changed capital letter to lowercase. 2023-08-21 05:45:12 +04:00
007691c534
Defer server Stop and writing of MLS instead of call after doneSignal fired. 2023-08-21 04:39:38 +04:00
6c46d2cf5f
Changed path to a mostlistenedsong file. 2023-08-19 19:48:28 +04:00
5bf80666d6
Removed explicit type for showVersion var. 2023-08-06 03:44:06 +04:00
a1bf9cf30a
Use flags instead of config file. Also replaced HttpServer with a new code. 2023-08-06 03:17:18 +04:00
832387f663
A little refactoring in main.go. 2023-07-22 23:17:45 +04:00
38f04aa9f8
Removed code for liquidsoap. 2023-07-22 22:15:24 +04:00
3ef213ab0d
Changed main a little. 2023-05-27 00:36:23 +04:00
17b5ab48ca
Use httpr instead of httprouter. 2023-05-26 23:56:00 +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
aac6d8e43a
Logically separate handlers with new lines in main.go. 2023-03-13 03:28:01 +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
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
ab19f045d2
Set log flag to only pring source file name and line. 2023-03-12 02:38:34 +04:00
83cdc222c7
Change arav.top to arav.su. 2023-02-23 17:49:01 +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
c18c52e839
Changed imports in main.go. 2023-02-07 02:32:34 +04:00
c1296cb7c5
Use new internal/http package. 2023-02-07 02:31:57 +04:00
ca8613745f
First check if a unix socket used and only then defer a removing of it. 2023-02-07 02:31:30 +04:00
3eb739bc28
LoadConfiguration() changed to Load() in main.go. 2023-02-07 02:30:31 +04:00
98786e6964
Ver. -> ver. 2023-02-07 02:23:41 +04:00
0bb2cf9a08
Removed log-stdout flag. Ditched self-made logging. 2023-02-07 02:23:04 +04:00
f631fdfa7c
Playlist log watcher was made into a struct. 2022-09-19 01:55:09 +04:00
a7d91dc92e
Reflect the changes in main.go. 2022-09-19 01:33:52 +04:00
2c0f0ce61b
Oh, liquid var is nil. We don't need to call Stop(). 2022-08-30 01:57:11 +04:00
e3112cb4d2
Added a --no-liquidsoap flag to not start a liquidsoap. 2022-08-30 00:14:39 +04:00
a5d7aacb4c
Make inability to run liquidsoap fatal. 2022-08-29 19:35:11 +04:00
fec2a4b524
Okay, the problem with liquidsoap is with permissions. So, now it is not mandatory. 2022-08-29 14:14:29 +04:00