fetching from object not from source
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user