jf-roku/components/GetShuffleEpisodesTask.bs

17 lines
344 B
Plaintext
Raw Normal View History

import "pkg:/source/utils/config.brs"
2023-05-05 17:45:53 +00:00
import "pkg:/source/api/sdk.bs"
sub init()
m.top.functionName = "getShuffleEpisodesTask"
end sub
sub getShuffleEpisodesTask()
2023-05-05 17:45:53 +00:00
data = api.shows.GetEpisodes(m.top.showID, {
UserId: m.global.session.user.id,
SortBy: "Random",
Limit: 200
})
m.top.data = data
end sub