jf-roku/components/GetNextEpisodeTask.brs

17 lines
381 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 = "getNextEpisodeTask"
end sub
sub getNextEpisodeTask()
2023-05-05 17:45:53 +00:00
m.nextEpisodeData = api.shows.GetEpisodes(m.top.showID, {
UserId: m.global.session.user.id,
StartItemId: m.top.videoID,
Limit: 2
})
m.top.nextEpisodeData = m.nextEpisodeData
end sub