|
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 |
|
|
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 |
|
|
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 |
|
|
6ebe24fa5a
|
In SongList Add check if a current song wasn't set yet.
|
2023-10-01 06:37:47 +04:00 |
|
|
a4f7366213
|
In handlers made use of a SongList.
|
2023-10-01 05:43:52 +04:00 |
|
|
8c1e46900a
|
Added a SongList and Song_ types. An underscore is temporary and is because there is an another Song type in an icecast.go file.
|
2023-10-01 05:42:55 +04:00 |
|
|
cbfc1549ed
|
Added a mutex for Listeners struct for thread safety.
|
2023-10-01 04:18:43 +04:00 |
|
|
07d11ce3ff
|
A dummy Song handler was added.
|
2023-10-01 03:35:33 +04:00 |
|
|
88b5f21343
|
Added playlist handler.
|
2023-10-01 01:32:57 +04:00 |
|
|
3d2b172deb
|
Replaced unused r arg with _ in handlers.
|
2023-10-01 01:32:17 +04:00 |
|
|
2e6f9f27c4
|
Added a Playlist struct.
|
2023-10-01 00:47:07 +04:00 |
|
|
978a2602d8
|
Added handlers used in a radiodj service. Currently just for listeners.
|
2023-09-30 23:59:48 +04:00 |
|
|
328dbc644e
|
A struct to hold a number of current and peak listeners was added.
|
2023-09-30 23:57:31 +04:00 |
|
|
4b8ab610d5
|
Added comments for separator* consts.
|
2023-09-17 19:18:18 +04:00 |
|
|
b1428812c8
|
Comment out log in a benchmark.
|
2023-09-15 04:24:12 +04:00 |
|
|
60045d4ca2
|
icecastLastPlayedSongs was replaced by icecastCurrentSong that fetch only one song at the very end of a playlist.log. Also added a benchmark for this func.
|
2023-09-15 04:19:28 +04:00 |
|
|
7bb91cfcbe
|
A little reorganisation in icecast.go.
|
2023-09-15 03:20:12 +04:00 |
|
|
e8ad10a16d
|
In CheckAndUpdateMostListenedSong pass cur and prev songs by pointer.
|
2023-09-15 03:17:44 +04:00 |
|
|
2cf6e1a6cb
|
append() was replaced with more efficient copy() (only 1 allocation with make).
|
2023-09-14 18:20:47 +04:00 |
|
|
978b4c6454
|
Removed unused error returning (error is always nil).
|
2023-09-14 17:59:14 +04:00 |
|
|
a6f92b56da
|
Reorganised Handlers struct fields.
|
2023-09-14 17:58:35 +04:00 |
|
|
eccf0ff4e9
|
Removed unused const FormatISO8601.
|
2023-09-14 17:51:15 +04:00 |
|
|
c020031127
|
Do not overwrite mostlistenedsong file if a song wasn't changed.
|
2023-09-10 18:23:06 +04:00 |
|
|
e082527edc
|
In case of an http error show Offline in a Now playing field.
|
2023-08-21 18:31:06 +04:00 |
|
|
9ac60e9f28
|
Don't show server start date and time on a page.
|
2023-08-21 18:30:21 +04:00 |
|
|
5c16576fa4
|
Removed one nesting level by removing select statement.
|
2023-08-21 06:08:21 +04:00 |
|
|
76b3e2e8ad
|
For some log messages changed capital letter to lowercase.
|
2023-08-21 05:45:12 +04:00 |
|
|
f9b2afdd50
|
Added log for failed attempts on retrieving songs from playlist.log.
|
2023-08-20 18:03:51 +04:00 |
|
|
48bbd32eb8
|
Remove a debug print accidenatlly commited.
|
2023-08-20 03:27:08 +04:00 |
|
|
075e171b40
|
Populate a freshly created cache with songs if there are any.
|
2023-08-20 03:26:14 +04:00 |
|
|
7df94bef12
|
Only then call make on cache if it is nil.
|
2023-08-20 03:20:49 +04:00 |
|
|
1df162445e
|
Removed configuration file.
|
2023-08-06 03:19:26 +04:00 |
|
|
a1bf9cf30a
|
Use flags instead of config file. Also replaced HttpServer with a new code.
|
2023-08-06 03:17:18 +04:00 |
|
|
4cc4d0138a
|
Return an empty IcecastStatus struct instead of nil in case of an error.
|
2023-07-22 23:08:18 +04:00 |
|
|
877b5d4013
|
Playlist file renamed to playlist.m3u.
|
2023-07-22 22:58:42 +04:00 |
|
|
38f04aa9f8
|
Removed code for liquidsoap.
|
2023-07-22 22:15:24 +04:00 |
|
|
cac5751ede
|
Removed AssetsFS() since it is not needed anymore.
|
2023-05-27 00:36:03 +04:00 |
|
|
8b439bbd5a
|
Removed httprouter.
|
2023-05-26 23:55:40 +04:00 |
|
|
3e513087ca
|
Let's dynamically calculate bufferSize with 320 bytes per line.
|
2023-05-21 23:11:15 +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 |
|