jf-roku/components/GetNextEpisodeTask.brs

17 lines
383 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: get_setting("active_user"),
StartItemId: m.top.videoID,
Limit: 2
})
m.top.nextEpisodeData = m.nextEpisodeData
end sub