Resolve issue with artist/song library playback
This commit is contained in:
parent
2d0743f935
commit
9a69272f62
|
@ -18,6 +18,11 @@ sub pageContentChanged()
|
||||||
setPosterImage(item.posterURL)
|
setPosterImage(item.posterURL)
|
||||||
setScreenTitle(item.json)
|
setScreenTitle(item.json)
|
||||||
setOnScreenTextValues(item.json)
|
setOnScreenTextValues(item.json)
|
||||||
|
|
||||||
|
' Only 1 song shown, so hide Play Album button
|
||||||
|
if item.json.ChildCount = 1
|
||||||
|
m.top.findNode("playAlbum").visible = false
|
||||||
|
end if
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
' Set poster image on screen
|
' Set poster image on screen
|
||||||
|
@ -57,6 +62,11 @@ end sub
|
||||||
function onKeyEvent(key as string, press as boolean) as boolean
|
function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
if not press then return false
|
if not press then return false
|
||||||
|
|
||||||
|
' Play Album is hidden, so there are no navigation needs here
|
||||||
|
if m.top.pageContent.json.ChildCount = 1
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
if key = "right" and m.playAlbum.hasFocus()
|
if key = "right" and m.playAlbum.hasFocus()
|
||||||
m.songList.setFocus(true)
|
m.songList.setFocus(true)
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -325,15 +325,15 @@ end function
|
||||||
function CreateMusicArtistDetailsGroup(musicartist)
|
function CreateMusicArtistDetailsGroup(musicartist)
|
||||||
musicData = MusicAlbumList(musicartist.id)
|
musicData = MusicAlbumList(musicartist.id)
|
||||||
|
|
||||||
' User could have albums or just songs under artists
|
' User only has songs under artists
|
||||||
if musicData = invalid or musicData.Items.Count() = 0
|
if musicData = invalid or musicData.Items.Count() = 0
|
||||||
' Just songs under artists...
|
' Just songs under artists...
|
||||||
group = CreateObject("roSGNode", "MusicAlbumDetails")
|
group = CreateObject("roSGNode", "MusicAlbumDetails")
|
||||||
group.pageContent = ItemMetaData(musicartist.id)
|
group.pageContent = ItemMetaData(musicartist.id)
|
||||||
group.musicArtistAlbumData = MusicSongList(musicartist.id)
|
group.albumData = MusicSongList(musicartist.id)
|
||||||
group.observeField("playSong", m.port)
|
group.observeField("playSong", m.port)
|
||||||
else
|
else
|
||||||
' Albums...
|
' User has albums under artists
|
||||||
group = CreateObject("roSGNode", "MusicArtistDetails")
|
group = CreateObject("roSGNode", "MusicArtistDetails")
|
||||||
group.pageContent = ItemMetaData(musicartist.id)
|
group.pageContent = ItemMetaData(musicartist.id)
|
||||||
group.musicArtistAlbumData = musicData
|
group.musicArtistAlbumData = musicData
|
||||||
|
|
Loading…
Reference in New Issue
Block a user