Fix instant mix crash for artist with no albums
This commit is contained in:
parent
79737241f2
commit
3dbaa07a0f
|
@ -220,11 +220,23 @@ sub Main (args as dynamic) as void
|
||||||
if isValid(m.spinner)
|
if isValid(m.spinner)
|
||||||
m.spinner.visible = true
|
m.spinner.visible = true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
group = invalid
|
||||||
|
|
||||||
|
' Create instant mix based on selected album
|
||||||
if isValid(screenContent.albumData)
|
if isValid(screenContent.albumData)
|
||||||
group = CreateInstantMixGroup(screenContent.albumData.items)
|
if isValid(screenContent.albumData.items)
|
||||||
else if isValid(screenContent.pageContent)
|
if screenContent.albumData.items.count() > 0
|
||||||
group = CreateInstantMixGroup([{ id: screenContent.musicArtistAlbumData.items[0].json.id }])
|
group = CreateInstantMixGroup(screenContent.albumData.items)
|
||||||
|
end if
|
||||||
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
' Create instant mix based on selected artist
|
||||||
|
if not isValid(group)
|
||||||
|
group = CreateInstantMixGroup([{ id: screenContent.pageContent.id }])
|
||||||
|
end if
|
||||||
|
|
||||||
else if isNodeEvent(msg, "episodeSelected")
|
else if isNodeEvent(msg, "episodeSelected")
|
||||||
' If you select a TV Episode from ANYWHERE, follow this flow
|
' If you select a TV Episode from ANYWHERE, follow this flow
|
||||||
node = getMsgPicker(msg, "picker")
|
node = getMsgPicker(msg, "picker")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user