Add support quickplay program

This commit is contained in:
1hitsong 2023-10-27 16:39:35 -04:00 committed by Charles Ewert
parent 7f4462c44c
commit ac592aa78f
2 changed files with 11 additions and 0 deletions

View File

@ -189,6 +189,8 @@ sub Main (args as dynamic) as void
quickplay.person(itemNode) quickplay.person(itemNode)
else if itemType = "tvchannel" else if itemType = "tvchannel"
quickplay.tvChannel(itemNode) quickplay.tvChannel(itemNode)
else if itemType = "program"
quickplay.program(itemNode)
end if end if
m.global.queueManager.callFunc("playQueue") m.global.queueManager.callFunc("playQueue")

View File

@ -324,6 +324,15 @@ namespace quickplay
m.global.sceneManager.callFunc("pushScene", group) m.global.sceneManager.callFunc("pushScene", group)
end sub end sub
' Quick Play A Live Program
sub program(itemNode as object)
if not isValid(itemNode) or not isValid(itemNode.json) or not isValid(itemNode.json.ChannelId) then return
stopLoadingSpinner()
group = CreateVideoPlayerGroup(itemNode.json.ChannelId)
m.global.sceneManager.callFunc("pushScene", group)
end sub
' Quick Play A Playlist. ' Quick Play A Playlist.
' Play the first unwatched episode. ' Play the first unwatched episode.
' If none, play the whole season starting with episode 1. ' If none, play the whole season starting with episode 1.