jf-roku/components/music/MusicAlbumSongList.brs

24 lines
518 B
Plaintext
Raw Normal View History

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
2022-05-14 21:14:15 +00:00
albumData = m.top.MusicArtistAlbumData
data = CreateObject("roSGNode", "ContentNode")
2022-05-14 23:25:17 +00:00
2022-05-14 21:14:15 +00:00
for each song in albumData.items
songcontent = data.createChild("ContentNode")
songcontent.title = song.title
end for
m.top.content = data
return data
2022-05-31 20:27:26 +00:00
end function