jellyfin-roku/components/GetShuffleEpisodesTask.bs
2023-10-03 12:11:25 -04:00

17 lines
343 B
Plaintext

import "pkg:/source/utils/config.bs"
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