queue fix
This commit is contained in:
1 parent
793842f4dd
commit
188463c6a7
1 file changed
+3
-3
@@ -236,16 +236,16 @@ function FindPlaylistVideosInQueue(videoNodes as object) as integer
|
|||||||
queueVideos = m.content.getChildren(-1, 0)
|
queueVideos = m.content.getChildren(-1, 0)
|
||||||
|
|
||||||
' array in array search based on node.videoId, starting from the end
|
' array in array search based on node.videoId, starting from the end
|
||||||
for i = queueCount - 1 to playlistCount step -1
|
for i = queueCount - playlistCount to 0 step -1
|
||||||
found = true
|
found = true
|
||||||
for j = 0 to playlistCount - 1
|
for j = 0 to playlistCount - 1
|
||||||
if queueVideos[i - j].videoId <> videoNodes[j].videoId
|
if queueVideos[i + j].videoId <> videoNodes[j].videoId
|
||||||
found = false
|
found = false
|
||||||
exit for
|
exit for
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
if found
|
if found
|
||||||
return i - playlistCount + 1
|
return i
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user