1
0

In an index.pug file make a copy of a current song for thread safety.

This commit is contained in:
Alexander Andreev 2023-10-07 05:25:13 +04:00
parent 020676f113
commit 238705b00f
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -45,7 +45,7 @@ html(lang='en')
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]!
div div
- cur := songList.Current() - cur := *songList.Current()
if (cur.Artist != "") if (cur.Artist != "")
p Now playing: #[span#radio-song #{cur.ArtistTitle()}] ( #[span#radio-duration-estimate ] #[span#radio-duration #{cur.DurationString()}] ) p Now playing: #[span#radio-song #{cur.ArtistTitle()}] ( #[span#radio-duration-estimate ] #[span#radio-duration #{cur.DurationString()}] )
else else