@@ -68,28 +68,26 @@ sub onContentChange()
68
68
m .top .observeField ("position" , "onPositionChanged" )
69
69
70
70
' If video content type is not episode, remove position observer
71
- if m .top .content .contenttype <> 4
72
- m .top .unobserveField ("position" )
73
- end if
71
+ ' if m.top.content.contenttype <> 4
72
+ ' m.top.unobserveField("position")
73
+ ' end if
74
74
end sub
75
75
76
76
sub onNextEpisodeDataLoaded ()
77
77
m .checkedForNextEpisode = true
78
78
79
79
m .top .observeField ("position" , "onPositionChanged" )
80
-
81
- if m .getNextEpisodeTask .nextEpisodeData .Items .count () <> 2
82
- m .top .unobserveField ("position" )
83
- end if
84
80
end sub
85
81
86
82
'
87
83
' Runs Next Episode button animation and sets focus to button
88
84
sub showNextEpisodeButton ()
89
- if not m .nextEpisodeButton .visible
90
- m .showNextEpisodeButtonAnimation .control = "start"
91
- m .nextEpisodeButton .setFocus (true )
92
- m .nextEpisodeButton .visible = true
85
+ if m .top .content .contenttype = 4
86
+ if not m .nextEpisodeButton .visible
87
+ m .showNextEpisodeButtonAnimation .control = "start"
88
+ m .nextEpisodeButton .setFocus (true )
89
+ m .nextEpisodeButton .visible = true
90
+ end if
93
91
end if
94
92
end sub
95
93
@@ -109,15 +107,18 @@ end sub
109
107
110
108
' Checks if we need to display the Next Episode button
111
109
sub checkTimeToDisplayNextEpisode ()
112
- if int (m .top .position ) >= (m .top .runTime - 30 )
113
- showNextEpisodeButton ()
114
- updateCount ()
115
- return
116
- end if
110
+ if m .top .content .contenttype = 4
117
111
118
- if m .nextEpisodeButton .visible or m .nextEpisodeButton .hasFocus ()
119
- m .nextEpisodeButton .visible = false
120
- m .nextEpisodeButton .setFocus (false )
112
+ if int (m .top .position ) >= (m .top .runTime - 30 )
113
+ showNextEpisodeButton ()
114
+ updateCount ()
115
+ return
116
+ end if
117
+
118
+ if m .nextEpisodeButton .visible or m .nextEpisodeButton .hasFocus ()
119
+ m .nextEpisodeButton .visible = false
120
+ m .nextEpisodeButton .setFocus (false )
121
+ end if
121
122
end if
122
123
end sub
123
124
0 commit comments