jf-roku/components/music/MusicAlbumSongList.brs
2022-05-23 19:54:03 -04:00

23 lines
521 B
Plaintext

sub init()
m.top.content = getData()
m.top.setfocus(true)
end sub
function getData()
if m.top.MusicArtistAlbumData = invalid
data = CreateObject("roSGNode", "ContentNode")
return data
end if
albumData = m.top.MusicArtistAlbumData
data = CreateObject("roSGNode", "ContentNode")
for each song in albumData.items
songcontent = data.createChild("ContentNode")
songcontent.title = song.title
end for
m.top.content = data
return data
end function