First try to load currently playing song.
This commit is contained in:
parent
2e60f2bb8a
commit
0fffbce646
@ -182,6 +182,10 @@ func (pw *PlaylistLogWatcher) Watch(playlistPath string, n int) (err error) {
|
|||||||
|
|
||||||
lastPlayedCache = make([]Song, 0, n)
|
lastPlayedCache = make([]Song, 0, n)
|
||||||
|
|
||||||
|
if songs, err := icecastLastPlayedSongs(playlistPath, 1); err == nil && len(songs) > 0 {
|
||||||
|
currentlyPlaying = songs[0]
|
||||||
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user