From b077fa053cd6e0f0f5d1d1f9cf75b51810dd1a78 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 31 Mar 2022 18:02:04 +0400 Subject: [PATCH] It is better to call here lastPlayedSongs directly. --- internal/radio/icecast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 2476626..bbf0c01 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -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 }