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