Changed force update function. Changed song's fields to named ones.
This commit is contained in:
parent
eca2320b5e
commit
d7d84a7f52
@ -40,15 +40,15 @@ html(lang='en')
|
||||
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
|
||||
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)
|
||||
section
|
||||
h2 Last 10 songs
|
||||
table#last-played
|
||||
each song in last_songs
|
||||
tr
|
||||
td= song[0]
|
||||
td= song[1]
|
||||
td= song.artist
|
||||
td= song.title
|
||||
section
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user