jf-roku/components/GetShuffleEpisodesTask.brs
Charles Ewert bdfcac74e6
Implement global session var (#1224)
Co-authored-by: Jimi <jimi@thedodgefamily.com>
2023-06-01 08:43:27 -04:00

17 lines
344 B
Plaintext

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