Skip to content

Invidious is an alternative front-end to YouTube

Playlists: Fix pagination of Invidious playlists (#3861)

Samantaz Foxff6166edf78b
diff --cc src/invidious/routes/playlists.cr
index 5cb96809,a65ff64c..9c6843e9
--- a/src/invidious/routes/playlists.cr
+++ b/src/invidious/routes/playlists.cr
@@@ -433,7 -427,11 +438,11 @@@ module Invidious::Routes::Playlist
end
begin
- items = get_playlist_videos(playlist, offset: (page - 1) * 200)
+ if playlist.is_a? InvidiousPlaylist
- videos = get_playlist_videos(playlist, offset: (page - 1) * 100)
++ items = get_playlist_videos(playlist, offset: (page - 1) * 100)
+ else
- videos = get_playlist_videos(playlist, offset: (page - 1) * 200)
++ items = get_playlist_videos(playlist, offset: (page - 1) * 200)
+ end
rescue ex
return error_template(500, "Error encountered while retrieving playlist videos.<br>#{ex.message}")
end