diff options
| author | TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> | 2021-04-01 19:51:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-01 19:51:33 +0000 |
| commit | 4b6d0fb517c605711328f2a3a1ef1a014d7dc155 (patch) | |
| tree | cafa784cbf87bb5c0b7aed2d046acc22475a38b9 | |
| parent | 052c5c67b882cdfb1f096e117f87b4680fbda49b (diff) | |
| parent | 62e46b7a366fa10d376a5a95eb9051f581fa7f60 (diff) | |
| download | invidious-4b6d0fb517c605711328f2a3a1ef1a014d7dc155.tar.gz invidious-4b6d0fb517c605711328f2a3a1ef1a014d7dc155.tar.bz2 invidious-4b6d0fb517c605711328f2a3a1ef1a014d7dc155.zip | |
Merge pull request #1967 from SamantazFox/fix-long-playlists-2
Fix missing last page in playlists
| -rw-r--r-- | src/invidious/routes/playlists.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routes/playlists.cr b/src/invidious/routes/playlists.cr index 73c14155..1f7fa27d 100644 --- a/src/invidious/routes/playlists.cr +++ b/src/invidious/routes/playlists.cr @@ -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}" |
