File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ end sub
18
18
sub fetchCaption ()
19
19
re = CreateObject ("roRegex " , "(http.*?\.vtt)" , "s" )
20
20
url = re .match (m .top .url )[0 ]
21
- if url <> invalid then
21
+ if url <> invalid
22
22
m .reader .setUrl (url )
23
23
text = m .reader .GetToString ()
24
24
m .captionList = parseVTT (text )
@@ -30,11 +30,11 @@ end sub
30
30
31
31
sub updateCaption ()
32
32
' Stop updating captions if the video isn't playing
33
- if m .top .playerState = "playing" then
33
+ if m .top .playerState = "playing"
34
34
m .top .currentPos = m .top .currentPos + 100
35
35
tmp = []
36
36
for each entry in m .captionList
37
- if entry ["start" ] <= m .top .currentPos and m .top .currentPos <= entry ["end" ] then
37
+ if entry ["start" ] <= m .top .currentPos and m .top .currentPos <= entry ["end" ]
38
38
label = CreateObject ("roSGNode " , "Label" )
39
39
label .text = entry ["text" ]
40
40
label .font = m .font
@@ -80,4 +80,4 @@ function parseVTT(text)
80
80
end for
81
81
end for
82
82
return captionList
83
- end function
83
+ end function
You can’t perform that action at this time.
0 commit comments