mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix param ordering for fetch_playlist_videos
This commit is contained in:
parent
382a6b556d
commit
f3c9566687
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue