diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-10-10 19:47:51 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-10-10 19:47:51 -0500 |
| commit | c87aa8671cd6d4a2d48248c27bfd8aca9c62ccee (patch) | |
| tree | 0e4ff17a555421ec1d0e83d3fceab3f737e40184 /src | |
| parent | 921c34aa650463de75e3fa0d72b52975a0ea0646 (diff) | |
| download | invidious-c87aa8671cd6d4a2d48248c27bfd8aca9c62ccee.tar.gz invidious-c87aa8671cd6d4a2d48248c27bfd8aca9c62ccee.tar.bz2 invidious-c87aa8671cd6d4a2d48248c27bfd8aca9c62ccee.zip | |
Add fix for continuation on playlists smaller than 100 videos
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/playlists.cr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index b75a3293..4e9d837b 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -65,6 +65,11 @@ def fetch_playlist_videos(plid, page, video_count, continuation = nil) nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")])) videos = extract_playlist(plid, nodeset, 0) + if continuation + until videos[0].id == continuation + videos.shift + end + end end end |
