jf-roku/components/photos/LoadPhotoTask.bs
2023-10-03 12:11:25 -04:00

21 lines
443 B
Plaintext

import "pkg:/source/api/Image.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/baserequest.bs"
sub init()
m.top.functionName = "loadItems"
end sub
sub loadItems()
item = m.top.itemContent
if item <> invalid
params = {
maxHeight: 1080,
maxWidth: 1920
}
m.top.results = ImageURL(item.Id, "Primary", params)
else
m.top.results = invalid
end if
end sub