1
0

It is better to call here lastPlayedSongs directly.

This commit is contained in:
Alexander Andreev 2022-03-31 18:02:04 +04:00
parent 0983a0f0c5
commit b077fa053c
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -82,7 +82,7 @@ func IcecastLastSong(playlistPath string) (Song, error) {
return lastPlayedCache[len(lastPlayedCache)-1], nil return lastPlayedCache[len(lastPlayedCache)-1], nil
} }
songs, err := IcecastLastPlayedSongs(1, playlistPath) songs, err := lastPlayedSongs(1, playlistPath)
if len(songs) == 0 { if len(songs) == 0 {
return Song{}, nil return Song{}, nil
} }