From 135fa2ab5fce873936c68faf8eec26b22c37815d Mon Sep 17 00:00:00 2001 From: Laptop Date: Mon, 7 Oct 2024 17:27:22 +0300 Subject: [PATCH] don't try to load missing tracks when there aren't any (also ignore previous commit message i forgot to switch layouts) --- lib/sc/playlist.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sc/playlist.go b/lib/sc/playlist.go index 9dd1958..0ce534b 100644 --- a/lib/sc/playlist.go +++ b/lib/sc/playlist.go @@ -161,6 +161,10 @@ func (p *Playlist) GetMissingTracks() error { } } + if len(missing) == 0 { + return nil + } + res, next, err := GetMissingTracks(missing) if err != nil { return err