In an index.pug file make a copy of a current song for thread safety.
This commit is contained in:
parent
020676f113
commit
238705b00f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user