Change prerollactive function name
This commit is contained in:
parent
3b1207dc2f
commit
519a804403
|
@ -17,7 +17,7 @@ sub loadItems()
|
|||
m.top.isIntro = false
|
||||
|
||||
' Only show preroll once per queue
|
||||
if m.global.queueManager.callFunc("prerollActive")
|
||||
if m.global.queueManager.callFunc("isPrerollActive")
|
||||
' Prerolls not allowed if we're resuming video
|
||||
if m.global.queueManager.callFunc("getCurrentItem").startingPoint = 0
|
||||
preRoll = GetIntroVideos(m.top.itemId)
|
||||
|
|
|
@ -12,7 +12,7 @@ sub init()
|
|||
m.originalQueue = []
|
||||
m.queueTypes = []
|
||||
' Preroll videos only play if user has cinema mode setting enabled
|
||||
m.prerollActive = (get_user_setting("playback.cinemamode") = "true")
|
||||
m.isPrerollActive = (get_user_setting("playback.cinemamode") = "true")
|
||||
m.position = 0
|
||||
m.shuffleEnabled = false
|
||||
end sub
|
||||
|
@ -21,7 +21,7 @@ end sub
|
|||
sub clear()
|
||||
m.queue = []
|
||||
m.queueTypes = []
|
||||
m.prerollActive = (get_user_setting("playback.cinemamode") = "true")
|
||||
m.isPrerollActive = (get_user_setting("playback.cinemamode") = "true")
|
||||
setPosition(0)
|
||||
end sub
|
||||
|
||||
|
@ -144,14 +144,14 @@ sub pop()
|
|||
m.queueTypes.pop()
|
||||
end sub
|
||||
|
||||
' Return prerollActive status
|
||||
function prerollActive()
|
||||
return m.prerollActive
|
||||
' Return isPrerollActive status
|
||||
function isPrerollActive() as boolean
|
||||
return m.isPrerollActive
|
||||
end function
|
||||
|
||||
' Set prerollActive status
|
||||
sub setPrerollStatus(newStatus)
|
||||
m.prerollActive = newStatus
|
||||
m.isPrerollActive = newStatus
|
||||
end sub
|
||||
|
||||
' Push new items to the play queue
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
<function name="getQueueUniqueTypes" />
|
||||
<function name="getUnshuffledQueue" />
|
||||
<function name="hold" />
|
||||
<function name="isPrerollActive" />
|
||||
<function name="moveBack" />
|
||||
<function name="moveForward" />
|
||||
<function name="peek" />
|
||||
<function name="playQueue" />
|
||||
<function name="pop" />
|
||||
<function name="prerollActive" />
|
||||
<function name="push" />
|
||||
<function name="resetShuffle" />
|
||||
<function name="set" />
|
||||
|
|
Loading…
Reference in New Issue
Block a user