mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add fix for continuation on playlists smaller than 100 videos
This commit is contained in:
parent
921c34aa65
commit
c87aa8671c
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ def fetch_playlist_videos(plid, page, video_count, continuation = nil)
|
||||||
nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")]))
|
nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")]))
|
||||||
|
|
||||||
videos = extract_playlist(plid, nodeset, 0)
|
videos = extract_playlist(plid, nodeset, 0)
|
||||||
|
if continuation
|
||||||
|
until videos[0].id == continuation
|
||||||
|
videos.shift
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue