fetching from object not from source

This commit is contained in:
Hazel Noack
2025-10-09 12:23:10 +02:00
parent e9d1d20c63
commit 4eab2bb874
2 changed files with 23 additions and 8 deletions

View File

@@ -100,11 +100,7 @@ func interpretCommand(command string, store musicObjectStore) (musicObjectStore,
current := currentMusicObjects[index]
if len(current.GetSources()) <= 0 {
return store, errors.New("selected object has no sources to download")
}
currentMusicObjects, err = plugin.FetchList(current.GetSources()[0])
currentMusicObjects, err = plugin.FetchList(current)
if err != nil {
return store, err
}