|
98ed4035a7
|
In ListenersDec() handler added a missing return.
|
2023-10-02 18:09:25 +04:00 |
|
|
0bf81f93c8
|
In Song.DurationString() updated format.
|
2023-10-02 18:08:57 +04:00 |
|
|
64c2868fcf
|
Updated CheckAndUpdateMostListenedSong() func.
|
2023-10-02 15:04:51 +04:00 |
|
|
1990f1c7f0
|
In a PlaylistNext handler return a \n character as well.
|
2023-10-02 15:03:47 +04:00 |
|
|
29714b30ca
|
A file listeners.go was renamed to listener_counter.go.
|
2023-10-02 04:33:11 +04:00 |
|
|
8c510e6958
|
Fixed a dwelling-radio intake. Replaced a default playlist with this one.
|
2023-10-02 04:10:15 +04:00 |
|
|
44d0f6fc3b
|
Updated args in radio.service.
|
2023-10-02 04:03:39 +04:00 |
|
|
fe61d71149
|
Removed an unneeded radiodj.service file.
|
2023-10-02 04:03:23 +04:00 |
|
|
976ad683ca
|
Updated tools/radio-*.
|
2023-10-02 04:00:59 +04:00 |
|
|
c2c8c82212
|
Updated main.js. Added a new update() function that does everything. Not completed yet.
|
2023-10-02 03:56:57 +04:00 |
|
|
35429e57d2
|
In an index.pug added span#radio-duration.
|
2023-10-02 03:55:51 +04:00 |
|
|
9757f5f748
|
Oh, time.Duration works a little differently...
|
2023-10-02 03:55:17 +04:00 |
|
|
f1e2eca876
|
Added a DurationString() method for a Song that returns time in format 04:05 or 15:04:05 if a song is one hour or more long.
|
2023-10-02 03:52:26 +04:00 |
|
|
010774d775
|
Return a formatted string alongside with duration in milliseconds.
|
2023-10-02 03:48:31 +04:00 |
|
|
437403aa9e
|
From Makefile dwelling-radiodj was purged completely.
|
2023-10-02 03:22:06 +04:00 |
|
|
0519bc979c
|
Status() and LastSong() handlers was removed from main handlers.
|
2023-10-02 03:20:48 +04:00 |
|
|
3e0a1fe181
|
Updated index.pug.
|
2023-10-02 03:19:48 +04:00 |
|
|
bd9b80076a
|
Updated CheckAndUpdateMostListenedSong() to work with a new Song struct.
|
2023-10-02 03:19:23 +04:00 |
|
|
58b3d18288
|
Pass a SongList instead of instantiating.
|
2023-10-02 03:18:54 +04:00 |
|
|
f9d85d45f5
|
Song_ was renamed to Song. Also added Len() method to a SongList.
|
2023-10-02 03:18:30 +04:00 |
|
|
d0722131df
|
Added handlers and flags and instantiated all need stuff. Removed flags for icecast.
|
2023-10-02 03:16:17 +04:00 |
|
|
5e8e9943f9
|
Icecast-specific code was removed, because now it all is controled inside a service.
|
2023-10-02 03:15:05 +04:00 |
|
|
0245145a64
|
tools/radiodj-* was renamed to tools/radio-*.
|
2023-10-02 03:14:12 +04:00 |
|
|
698d7787e6
|
A separate executable dwelling-radiodj was removed.
|
2023-10-02 03:13:39 +04:00 |
|
|
f0438ff822
|
In ListenersGet() text/plain was replaced by application/json.
|
2023-10-02 02:35:01 +04:00 |
|
|
d2851c6fb8
|
Added http.Error() to a PlaylistNext() handler.
|
2023-10-02 02:29:18 +04:00 |
|
|
f709ac4b02
|
Added a MostListenedSong() handler.
|
2023-10-02 02:28:46 +04:00 |
|
|
8322d2a7a8
|
In Status handler: added missing Content-Type; Added most listened song; Removed with-list query, just return everything; Added http.Error().
|
2023-10-02 02:22:14 +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 |
|
|
3ed0f7b62a
|
Added MarshalJSON() method to MostListenedSong.
|
2023-10-02 02:07:39 +04:00 |
|
|
ddf5f3d0f7
|
Added check if mostListened set.
|
2023-10-02 02:07:08 +04:00 |
|
|
7cc228968d
|
In handlers made use of oggtag.ReadFile() func. Also updated func names.
|
2023-10-02 01:27:14 +04:00 |
|
|
c054c3b32e
|
Added a duration field to Song_ struct.
|
2023-10-02 01:26:22 +04:00 |
|
|
a741e3eb9a
|
In oggtag a prefix Ogg was removed from funtions and consts. Also added the consts that hold len of sequences.
|
2023-10-02 01:25:43 +04:00 |
|
|
17eeebf1f3
|
Implemented OggReadFile() func to get raw data from an OGG file. Also a func OggGetDuration() was implemented that returns duration of a song.
|
2023-10-02 01:08:24 +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 |
|
|
381da691a4
|
For ListenerCounter implemented MarshalJSON() method.
|
2023-10-01 22:03:26 +04:00 |
|
|
2be516236b
|
SongList.Current() will return nil if current song wasn't set yet.
|
2023-10-01 22:02:54 +04:00 |
|
|
dea283df27
|
Listeners struct was renamed to ListenerCounter.
|
2023-10-01 20:32:07 +04:00 |
|
|
dc3658d6de
|
Decided to implement an inotify watcher for a playlist file. Dunno if it works correctly, but it seems like, not tested yet.
|
2023-10-01 06:44:36 +04:00 |
|
|
4faf2a0309
|
In Playlist a method Load() was renamed into load(), and a public Reload() method created.
|
2023-10-01 06:40:05 +04:00 |
|
|
9f361be6c4
|
On SIGHUP reload a playlist file.
|
2023-10-01 06:38:21 +04:00 |
|
|
6ebe24fa5a
|
In SongList Add check if a current song wasn't set yet.
|
2023-10-01 06:37:47 +04:00 |
|
|
10b817df2e
|
In oggtag handle a case when tag name are in upper case.
|
2023-10-01 06:36:47 +04:00 |
|
|
2ea74277ab
|
Added run-dj test target in Makefile.
|
2023-10-01 06:13:15 +04:00 |
|
|
ae4b2c9dee
|
In radiodj main fixed loading of an MLS file.
|
2023-10-01 06:10:27 +04:00 |
|
|
d8aa7076c3
|
In Makefile added radiodj bash scripts.
|
2023-10-01 06:05:09 +04:00 |
|
|
9673da35ce
|
In Makefile added radiodj.
|
2023-10-01 05:59:33 +04:00 |
|