List both artists and albums as direct children to music

This commit is contained in:
1hitsong 2022-05-21 22:04:41 -04:00
parent 9a69272f62
commit d8b5ba06dd
3 changed files with 6 additions and 2 deletions

View File

@ -101,7 +101,7 @@ sub loadInitialItems()
else if m.top.parentItem.collectionType = "tvshows"
m.loadItemsTask.itemType = "Series"
else if m.top.parentItem.collectionType = "music"
m.loadItemsTask.itemType = "MusicArtist"
m.loadItemsTask.itemType = "MusicArtist,MusicAlbum"
m.loadItemsTask.fallbackType = "MusicAlbum"
m.loadItemsTask.recursive = false
else if m.top.parentItem.collectionType = "livetv"

View File

@ -49,7 +49,10 @@ function previousClicked() as boolean
end function
function nextClicked() as boolean
m.top.audio.control = "skipcontent"
if m.top.audio.contentIsPlaylist
m.top.audio.control = "skipcontent"
end if
return true
end function

View File

@ -332,6 +332,7 @@ function CreateMusicArtistDetailsGroup(musicartist)
group.pageContent = ItemMetaData(musicartist.id)
group.albumData = MusicSongList(musicartist.id)
group.observeField("playSong", m.port)
group.observeField("playAllSelected", m.port)
else
' User has albums under artists
group = CreateObject("roSGNode", "MusicArtistDetails")