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)
|
||||
|
||||
' 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
|
||||
for j = 0 to playlistCount - 1
|
||||
if queueVideos[i - j].videoId <> videoNodes[j].videoId
|
||||
if queueVideos[i + j].videoId <> videoNodes[j].videoId
|
||||
found = false
|
||||
exit for
|
||||
end if
|
||||
end for
|
||||
if found
|
||||
return i - playlistCount + 1
|
||||
return i
|
||||
end if
|
||||
end for
|
||||
|
||||
|
||||
Reference in new issue
Block a user