jf-roku/components/music/AlbumTrackList.brs

26 lines
548 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("MusicSongData")
songcontent.json = song.json
end for
m.top.content = data
2022-07-17 16:14:12 +00:00
m.top.doneLoading = true
return data
2022-05-31 20:27:26 +00:00
end function