mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
17 lines
380 B
Plaintext
17 lines
380 B
Plaintext
import "pkg:/source/utils/config.bs"
|
|
import "pkg:/source/api/sdk.bs"
|
|
|
|
sub init()
|
|
m.top.functionName = "getNextEpisodeTask"
|
|
end sub
|
|
|
|
sub getNextEpisodeTask()
|
|
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
|