mirror of
https://github.com/iv-org/invidious
synced 2024-11-24 03:53:27 +01:00
Merge pull request #1967 from SamantazFox/fix-long-playlists-2
Fix missing last page in playlists
This commit is contained in:
commit
4b6d0fb517
@ -434,7 +434,7 @@ class Invidious::Routes::Playlists < Invidious::Routes::BaseRoute
|
||||
end
|
||||
|
||||
page_count = (playlist.video_count / 100).to_i
|
||||
page_count = 1 if page_count == 0
|
||||
page_count += 1 if (playlist.video_count % 100) > 0
|
||||
|
||||
if page > page_count
|
||||
return env.redirect "/playlist?list=#{plid}&page=#{page_count}"
|
||||
|
Loading…
Reference in New Issue
Block a user