Changed force update function. Changed song's fields to named ones.

This commit is contained in:
Alexander Andreev 2021-09-01 22:08:09 +04:00
parent eca2320b5e
commit d7d84a7f52
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -40,15 +40,15 @@ html(lang='en')
p Now playing: #[span#radio-song= radio_status.song] p Now playing: #[span#radio-song= radio_status.song]
p Current/peak listeners: #[span#radio-listeners= radio_status.listeners] / #[span#radio-listener-peak= radio_status.listener_peak] p Current/peak listeners: #[span#radio-listeners= radio_status.listeners] / #[span#radio-listener-peak= radio_status.listener_peak]
p p
small Notice: information updates every 45 seconds. But you can #[a(href="javascript:getRadioStats()") update] it forcibly. small Notice: information updates every 45 seconds. But you can #[a(href="javascript:updateAll()") update] it forcibly.
if (last_songs) if (last_songs)
section section
h2 Last 10 songs h2 Last 10 songs
table#last-played table#last-played
each song in last_songs each song in last_songs
tr tr
td= song[0] td= song.artist
td= song[1] td= song.title
section section
h2 About the radio h2 About the radio
p This project grew from MPD I used to stream music over LAN for myself. Then I let it out and placed a player on my neocities website. Then I added Icecast to see if there are listeners. I wasn't happy on how MPD was nearly overloading CPU, and later on, when I moved radio off to a laptop, I found a great tool for streams called Liquidsoap. p This project grew from MPD I used to stream music over LAN for myself. Then I let it out and placed a player on my neocities website. Then I added Icecast to see if there are listeners. I wasn't happy on how MPD was nearly overloading CPU, and later on, when I moved radio off to a laptop, I found a great tool for streams called Liquidsoap.