2023-05-03 21:21:04 +00:00
|
|
|
import "pkg:/source/utils/config.brs"
|
2023-05-05 17:45:53 +00:00
|
|
|
import "pkg:/source/api/sdk.bs"
|
2023-05-03 21:21:04 +00:00
|
|
|
|
2023-02-25 16:43:36 +00:00
|
|
|
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, {
|
2023-02-25 16:43:36 +00:00
|
|
|
UserId: get_setting("active_user"),
|
|
|
|
SortBy: "Random",
|
|
|
|
Limit: 200
|
|
|
|
})
|
|
|
|
|
|
|
|
m.top.data = data
|
|
|
|
end sub
|