1
0

Working radio online status.

This commit is contained in:
Alexander Andreev 2022-03-31 02:11:23 +04:00
parent b258e6f7ef
commit f605475f75
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -30,12 +30,12 @@ html(lang='en')
| OGG 128 Kb/s | OGG 128 Kb/s
audio(preload='none' controls='') audio(preload='none' controls='')
source(src='/live/stream.ogg' type='audio/ogg') source(src='/live/stream.ogg' type='audio/ogg')
| Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]. | Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]!
//- - var isDateNA = .Status.ServerStartDate == 'n/a' if .Status.ServerStartDate
//- unless false p#radio-status On-air since
//- p #[span#radio-status On-air since #[time(datetime=.Status.ServerStartISO8601)= .Status.ServerStartDate]] time(datetime=.Status.ServerStartISO8601)= .Status.ServerStartDate
//- else else
//- p #[span#radio-status Radio is offline.] p#radio-status Radio is offline.
p Now playing: #[span#radio-song #{.Status.SongName}] p Now playing: #[span#radio-song #{.Status.SongName}]
p Current/peak listeners: #[span#radio-listeners #{.Status.Listeners}] / #[span#radio-listener-peak #{.Status.ListenerPeak}] p Current/peak listeners: #[span#radio-listeners #{.Status.Listeners}] / #[span#radio-listener-peak #{.Status.ListenerPeak}]
p p