2023-10-03 16:11:25 +00:00
|
|
|
import "pkg:/source/utils/config.bs"
|
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-06-01 12:43:27 +00:00
|
|
|
UserId: m.global.session.user.id,
|
2023-02-25 16:43:36 +00:00
|
|
|
SortBy: "Random",
|
|
|
|
Limit: 200
|
|
|
|
})
|
|
|
|
|
|
|
|
m.top.data = data
|
|
|
|
end sub
|