It is better to call here lastPlayedSongs directly.
This commit is contained in:
parent
0983a0f0c5
commit
b077fa053c
@ -82,7 +82,7 @@ func IcecastLastSong(playlistPath string) (Song, error) {
|
||||
return lastPlayedCache[len(lastPlayedCache)-1], nil
|
||||
}
|
||||
|
||||
songs, err := IcecastLastPlayedSongs(1, playlistPath)
|
||||
songs, err := lastPlayedSongs(1, playlistPath)
|
||||
if len(songs) == 0 {
|
||||
return Song{}, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user