diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-12-24 17:47:23 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-12-24 17:47:23 -0600 |
| commit | f3c95666876603d5433b10680189edea351577bc (patch) | |
| tree | 878908c6f1128f3dc658d9e017eab11d553fd40f | |
| parent | 382a6b556dcd0f328c4506e7e4907aa1cf5b5ae4 (diff) | |
| download | invidious-f3c95666876603d5433b10680189edea351577bc.tar.gz invidious-f3c95666876603d5433b10680189edea351577bc.tar.bz2 invidious-f3c95666876603d5433b10680189edea351577bc.zip | |
Fix param ordering for fetch_playlist_videos
| -rw-r--r-- | src/invidious.cr | 2 | ||||
| -rw-r--r-- | src/invidious/playlists.cr | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index e166e599..362789b0 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -514,7 +514,7 @@ get "/playlist" do |env| end begin - videos = fetch_playlist_videos(plid, page, playlist.video_count, locale) + videos = fetch_playlist_videos(plid, page, playlist.video_count, locale: locale) rescue ex videos = [] of PlaylistVideo end diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 4dbbf5da..0f74b37a 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -65,6 +65,7 @@ def fetch_playlist_videos(plid, page, video_count, continuation = nil, locale = 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 |
