From d7d84a7f52b1b573b1d03c1870ca2daacba5dad0 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 1 Sep 2021 22:08:09 +0400 Subject: [PATCH] Changed force update function. Changed song's fields to named ones. --- radio/views/index.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/views/index.pug b/radio/views/index.pug index 607dec4..677529d 100644 --- a/radio/views/index.pug +++ b/radio/views/index.pug @@ -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.