jf-roku/components/photos/LoadPhotoTask.bs

21 lines
443 B
Plaintext
Raw Normal View History

import "pkg:/source/api/Image.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/api/baserequest.bs"
2022-02-06 15:37:02 +00:00
sub init()
m.top.functionName = "loadItems"
end sub
sub loadItems()
item = m.top.itemContent
if item <> invalid
params = {
2022-05-30 12:59:24 +00:00
maxHeight: 1080,
2022-02-06 15:37:02 +00:00
maxWidth: 1920
}
m.top.results = ImageURL(item.Id, "Primary", params)
else
m.top.results = invalid
end if
end sub