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
|
|
|
|
2022-11-21 14:25:34 +00:00
|
|
|
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, {
|
2023-06-01 12:43:27 +00:00
|
|
|
UserId: m.global.session.user.id,
|
2022-11-21 14:25:34 +00:00
|
|
|
StartItemId: m.top.videoID,
|
|
|
|
Limit: 2
|
|
|
|
})
|
|
|
|
|
|
|
|
m.top.nextEpisodeData = m.nextEpisodeData
|
|
|
|
end sub
|