mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-25 15:07:22 +00:00
Fix param ordering for fetch_playlist_videos
This commit is contained in:
parent
382a6b556d
commit
f3c9566687
@ -514,7 +514,7 @@ get "/playlist" do |env|
|
|||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
videos = fetch_playlist_videos(plid, page, playlist.video_count, locale)
|
videos = fetch_playlist_videos(plid, page, playlist.video_count, locale: locale)
|
||||||
rescue ex
|
rescue ex
|
||||||
videos = [] of PlaylistVideo
|
videos = [] of PlaylistVideo
|
||||||
end
|
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")]))
|
nodeset = document.xpath_nodes(%q(.//tr[contains(@class, "pl-video")]))
|
||||||
|
|
||||||
videos = extract_playlist(plid, nodeset, 0)
|
videos = extract_playlist(plid, nodeset, 0)
|
||||||
|
|
||||||
if continuation
|
if continuation
|
||||||
until videos[0].id == continuation
|
until videos[0].id == continuation
|
||||||
videos.shift
|
videos.shift
|
||||||
|
Loading…
Reference in New Issue
Block a user