mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix missing last page in playlists
This commit is contained in:
parent
052c5c67b8
commit
62e46b7a36
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ class Invidious::Routes::Playlists < Invidious::Routes::BaseRoute
|
||||||
end
|
end
|
||||||
|
|
||||||
page_count = (playlist.video_count / 100).to_i
|
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
|
if page > page_count
|
||||||
return env.redirect "/playlist?list=#{plid}&page=#{page_count}"
|
return env.redirect "/playlist?list=#{plid}&page=#{page_count}"
|
||||||
|
|
Loading…
Reference in a new issue