|
63fcb36e60
|
Nah, 3KiB should be enought to read.
|
2023-03-12 22:06:15 +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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
77183bb14e
|
Added Content-Type header for filelist.
|
2023-02-19 21:41:58 +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 |
|
|
6d26d695ec
|
Pass ListLastNSongs to an Index template in handlers.go.
|
2023-02-07 02:46:10 +04:00 |
|
|
dc8ec51530
|
Func LoadConfiguration() was renamed to Load(). Added a comment for it. Edited a comment for SplitNetworkAddress() func.
|
2023-02-07 02:29:45 +04:00 |
|
|
bde8a59a31
|
Removed a comment for type Configuration that was from httpprocprobed service.
|
2023-02-07 02:28:54 +04:00 |
|
|
7c5e1465af
|
handlers moved to internal/http. Logging changed to std log. Type RadioHandlers renamed to Handlers.
|
2023-02-07 02:27:30 +04:00 |
|
|
91329ceaec
|
Server moved to internal/http.
|
2023-02-07 02:26:10 +04:00 |
|
|
192fa0d58f
|
Removed ToStdout option from Configuration.
|
2023-02-07 02:24:44 +04:00 |
|
|
7e83be82cb
|
Calculate offset for ReadAt() instead of using Seek().
Fixed going out of bounds.
|
2022-09-21 04:56:06 +04:00 |
|
|
f631fdfa7c
|
Playlist log watcher was made into a struct.
|
2022-09-19 01:55:09 +04:00 |
|
|
3727f44381
|
lastPlayedSongs changed to icecastLastPlayedSongs. playlistFired changed to playlistChanged.
|
2022-09-19 01:37:47 +04:00 |
|
|
e8e3570a8f
|
Liquidsoap code moved to radio package. ErrNotRunning -> ErrLiquidsoapNotRunning.
|
2022-09-19 01:32:23 +04:00 |
|
|
73fc9861fd
|
Renamed Song() method to more clear name SongName().
|
2022-08-31 00:52:50 +04:00 |
|
|
98b0a8085a
|
No, it skips 2 tracks instead of 1. Let's get back to -2.
|
2022-08-30 18:20:24 +04:00 |
|
|
0620f82940
|
lastPlayedSong was made into lastPlayedSongs. Now it retrieves up to n songs from a log.
|
2022-08-30 02:29:11 +04:00 |
|
|
64eed7ac7e
|
Oops, last line also has a newline. So the last one is empty.
|
2022-08-30 00:51:21 +04:00 |
|
|
1e6b51a2c0
|
IsRunning() method had no use.
|
2022-08-29 23:12:47 +04:00 |
|
|
f211602a4b
|
Implemented sane script validation. WTF did I think later..?
|
2022-08-29 23:10:39 +04:00 |
|
|
7dd517ea8f
|
Check if path is valid. Simplified error handling.
|
2022-08-29 22:20:05 +04:00 |
|
|
16e849eb65
|
Rewritten lastPlayedSong() in a sane way. Hope it will work.
|
2022-08-29 12:47:06 +04:00 |
|
|
d43b2fe897
|
Removed handling of imposible cases.
|
2022-08-29 09:19:35 +04:00 |
|
|
1996743470
|
Cache vars moved to the top of the file.
|
2022-08-29 09:08:08 +04:00 |
|
|
c935db8ce7
|
Implemented lastPlayedSong() function that retrieves one song from a playlist.log file that doesn't run external commands for it.
And now we start with an empty list.
|
2022-08-29 08:58:35 +04:00 |
|
|
0da8077ab7
|
Implemented a liquidsoap process launcher.
|
2022-08-29 07:20:36 +04:00 |
|
|
e94973920e
|
Added configuration fields for a liquidsoap.
|
2022-08-29 07:17:40 +04:00 |
|
|
b5d8b58b81
|
Template was replaced with a pre-compiled to a Go source file.
|
2022-06-13 18:35:36 +04:00 |
|
|
60dcf2c11c
|
ModMask replaced wuth ModIgnMask. Now IN_IGNORED being watched, it makes watcher to reinstantiate.
|
2022-05-24 23:20:19 +04:00 |
|
|
f2fcadd0c5
|
Removed not used NotFoundData structure.
|
2022-05-24 19:46:33 +04:00 |
|
|
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 |
|
|
4d5fb47a15
|
Template and assets moved off to web directory in root.
|
2022-05-24 18:30:45 +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 |
|
|
88e047d210
|
Moved time formats to constanst.
|
2022-04-02 04:29:23 +04:00 |
|
|
1b5dea899e
|
I found why time was being further altered. The reason is that slices are pointing to original array. Okay. The problem fixed.
|
2022-04-02 02:00:28 +04:00 |
|
|
db8e8c3ebf
|
Forgot to change time format in Index handler as well.
|
2022-04-01 23:35:14 +04:00 |
|
|
c4532fea24
|
According to tests it is equal performance wise, so why not make a code shorter.
|
2022-04-01 23:20:04 +04:00 |
|
|
7d447be786
|
Initialise playlistFired at definition.
|
2022-04-01 22:35:30 +04:00 |
|