Run format script

This commit is contained in:
1hitsong 2022-05-14 19:25:17 -04:00
parent d01a477bb3
commit cc4f6ef3a6
4 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ function getData()
albumData = m.top.MusicArtistAlbumData
data = CreateObject("roSGNode", "ContentNode")
for each song in albumData.items
songcontent = data.createChild("ContentNode")
songcontent.title = song.title

View File

@ -18,7 +18,7 @@ sub updateSize()
' size of the whole row
m.top.itemSize = [1700, (itemHeight + 40)]
' spacing between rows
m.top.itemSpacing = [0, 0]

View File

@ -185,7 +185,7 @@ sub Main (args as dynamic) as void
node = albums.musicArtistAlbumData.items[ptr[1]]
group = CreateMusicAlbumDetailsGroup(node)
else if isNodeEvent(msg, "musicSongSelected")
' Bypass for now
if false
@ -202,7 +202,7 @@ sub Main (args as dynamic) as void
if audio <> invalid
sceneManager.callFunc("pushScene", audio)
end if
end if
else if isNodeEvent(msg, "episodeSelected")
@ -394,7 +394,7 @@ sub Main (args as dynamic) as void
end sub
sub controlaudioplay()
if (m.audio.state = "finished")
if (m.audio.state = "finished")
m.audio.control = "stop"
m.audio.control = "none"
end if

View File

@ -142,7 +142,7 @@ end function
' Get list of albums belonging to an artist
function MusicAlbumList(id as string)
url = Substitute("Users/{0}/Items", get_setting("active_user"), id)
resp = APIRequest(url, {
resp = APIRequest(url, {
"UserId": get_setting("active_user"),
"parentId": id,
"includeitemtypes": "MusicAlbum",
@ -164,7 +164,7 @@ end function
' Get Songs that are on an Album
function MusicSongList(id as string)
url = Substitute("Users/{0}/Items", get_setting("active_user"), id)
resp = APIRequest(url, {
resp = APIRequest(url, {
"UserId": get_setting("active_user"),
"parentId": id,
"includeitemtypes": "Audio"