1
0
Commit Graph

677 Commits

Author SHA1 Message Date
454df3bb74
Write listeners statistics for a current song in case of an interrupting signal. 2024-05-11 04:22:06 +04:00
d94c029fda
In ListenerCounter struct also keep track of overall number of listeners for a song and its max simultaneous number of listeners. These parameters are being reset with a Reset() method that returns its values. 2024-05-11 04:21:00 +04:00
1682362779
Do not alter Song struct listeners with its methods, use a ListenerCounter to populate Listeners and MaxListeners. Eliminates the need for a mutex and SetFrom(), UpdateMaxListeners() and IncListeners() methods. 2024-05-11 04:18:28 +04:00
3b22643733
In an index.templ a range for was replaced by good old C-style for loop to prevent copying by value, and to get rid of that warning about mutex copy. 2024-05-10 04:59:18 +04:00
84e23b5b85
Remove an http.Error() func call from an anonym func that is spawned in a separate thread because that w (http.ResponseWriter) could be not available. 2024-05-10 04:39:56 +04:00
23f53609ae
Forgot to add preload="none", controls and playsinline to an audio tag. 2024-05-10 04:37:25 +04:00
c49c5b0112
No need in URL escaping since these links are safe already, so just cast them to SafeURL. 2024-05-10 02:48:47 +04:00
0a55b115fb
In main.js fixed a bug and removed a multiplication by 100 for volume control. 2024-05-10 02:23:09 +04:00
fb5c46381e
Remove a comment at the end of index.templ. 2024-05-10 00:13:12 +04:00
bf643e6cf6
Updated go.{mod,sum}, Makefile and .gitignore. 2024-05-10 00:12:14 +04:00
665a8e8c75
Current state of main.go. 2024-05-10 00:11:51 +04:00
670b6ea032
Jade was replaced with Templ. Also some changes were made to a layout. A ServeAsset() handler was introduced. 2024-05-10 00:11:33 +04:00
7c34a3a632
A func Site was added to return a schema://host string. 2024-05-10 00:09:35 +04:00
ec6c1df474
For Song struct a method SetFrom was added. 2024-05-10 00:08:59 +04:00
c1d64700ff
A separate MostListenedSong struct is not needed anymore. 2024-05-10 00:07:57 +04:00
71844a106d
Updated internal/http. 2024-05-10 00:07:07 +04:00
d936b41483
Now http2 is a separate option in nginx.conf. 2024-05-10 00:04:06 +04:00
816a8d88a7
Introduce a statistics DB implemented in SQLite3. 2024-05-09 23:53:33 +04:00
9ef0771389
SongList struct was removed. A Song struct got UpdateMaxListeners() and IncListeners() methods. A mutex was Introduced for it. A Listeners field to store overall number of listeners during a song playing was introduced as well. A comment for the Song struct was removed. 2024-05-09 20:30:17 +04:00
ec5b6a028b
In ListenerCounter struct int -> int64. 2024-05-09 20:18:06 +04:00
0244f6afd5
A unified ServeAsset() func was introduced. AssetsGetFile() now will panic if a file doesn't exists, because it must not be the case. 2024-04-20 18:54:05 +04:00
5575408560
Remove unused inode watcher. 2024-04-20 18:25:04 +04:00
92ae8e13f0
Remove unused radio-listener-dis/connect scripts. 2024-04-20 18:24:45 +04:00
b0f24b25b9
Version set to 24.10.0. 2024-03-06 04:49:27 +04:00
c795c2b87b
Updated a year in a Copyright. 2024-03-06 04:48:32 +04:00
dbba53c0fa
Fixed a typo on a description for -fallback-song arg. 2024-03-06 04:44:55 +04:00
34d4da946b
In sitemap.xml updated a loc's lastmod for an index page. 2024-03-06 04:33:30 +04:00
10ca532844
2023 -> 2024 in a footer. 2024-03-06 04:31:46 +04:00
8c0d070b41
Fixed a notice, since now info is being updated on a song reach its end. 2024-03-06 04:31:19 +04:00
78b2740c58
Make a radio volume slider vertical on chrome and chrome-like browsers. 2024-03-06 04:21:53 +04:00
0bd91c3c1f
Adding a muted attribute to a video tag makes it actually play on chrome and chrome-like browsers. 2024-03-06 04:20:43 +04:00
bc85efb3db
In main.js just call updateStatus() without waiting if there is a current song. 2023-10-09 01:44:46 +04:00
1d7cce75d5
Removed radio.vars.liq from backup= in PKGBUILD. 2023-10-09 01:23:08 +04:00
a18d5432b5
In ezstream.xml port 8001 was replaced by 8000. 2023-10-09 01:22:03 +04:00
7d4de3f6a6
Add 5 seconds to time.Now() to more accurately represent the time when a song actually starts to play. 2023-10-09 01:15:05 +04:00
46dbe72253
In icecast.xml authentication added missing s to http in URLs. 2023-10-09 01:03:42 +04:00
b76d861ab6
In icecast.xml set listen-port to 8000. 2023-10-09 00:34:44 +04:00
c43bd5ea92
In nginx.conf changed Icecast's port to 8000. And set to listen on 192.168.144.2:8000. 2023-10-09 00:30:16 +04:00
c9e30f76e6
Let's actually hide RWMutex's methods to clean a namespace. 2023-10-09 00:21:44 +04:00
5de3f8e9af
In oggtag.go bufTail was renamed to a more suitable bufLast. 2023-10-09 00:15:21 +04:00
3ba47c2d41
Updated sitemap.xml. 2023-10-09 00:12:32 +04:00
54fb77c8ae
In Makefile -fallback-song added in a run target. 2023-10-09 00:10:39 +04:00
fb46a912f7
In song.go updated comments. 2023-10-09 00:05:28 +04:00
f960d8516a
Since SongList.Current() now return a copy then this code is no longer needed. 2023-10-08 23:55:55 +04:00
e63f0aead3
Make a SongList.Current() return a copy of a current song. 2023-10-08 23:52:10 +04:00
04e09dd800
Removed debug fmt.Println from ListenersUpdate. 2023-10-08 23:07:04 +04:00
c548bc3382
Add a default source password to ezstream.xml. 2023-10-08 23:04:24 +04:00
c8e1176d8d
In nginx.conf fixed location path. 2023-10-08 22:51:38 +04:00
27affc5e73
Let's actually remove unused handlers. 2023-10-08 22:50:36 +04:00
bbfdb8c956
In nginx.conf added allow 127.0.0.1. Also found out a proxy_bind option. With it Icecast will see client's IP. 2023-10-08 22:49:04 +04:00