Requests album art at needed size

This commit is contained in:
1hitsong 2022-12-11 15:25:42 -05:00
parent ff931d72f2
commit aa761c0a35

View File

@ -147,11 +147,11 @@ function ItemMetaData(id as string)
tmp = CreateObject("roSGNode", "MusicSongData")
' Try using song's parent for poster image
tmp.image = PosterImage(data.ParentId)
tmp.image = PosterImage(data.ParentId, { "MaxWidth": 500, "MaxHeight": 500 })
' Song's parent poster image is no good, try using the song's poster image
if tmp.image = invalid
tmp.image = PosterImage(data.id)
tmp.image = PosterImage(data.id, { "MaxWidth": 500, "MaxHeight": 500 })
end if
tmp.json = data