diff options
| author | TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> | 2021-04-08 06:24:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-08 06:24:44 +0000 |
| commit | 18b4b141d928eebb82e12688936d2a3a115b7069 (patch) | |
| tree | fea03ac5daf1e6cc03aeb9a3b61867cc8ffc31d2 | |
| parent | cd1e478b9526f59f11f595eeae2fae625034edfe (diff) | |
| parent | 93198438b81db0ba3ad3a33233eabdcd84152375 (diff) | |
| download | invidious-18b4b141d928eebb82e12688936d2a3a115b7069.tar.gz invidious-18b4b141d928eebb82e12688936d2a3a115b7069.tar.bz2 invidious-18b4b141d928eebb82e12688936d2a3a115b7069.zip | |
Merge pull request #1990 from SamantazFox/patch-1
Fix for issue #1989
| -rw-r--r-- | src/invidious/playlists.cr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 71f6a9b8..073a9986 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -437,7 +437,8 @@ end def get_playlist_videos(db, playlist, offset, locale = nil, continuation = nil) # Show empy playlist if requested page is out of range - if offset >= playlist.video_count + # (e.g, when a new playlist has been created, offset will be negative) + if offset >= playlist.video_count || offset < 0 return [] of PlaylistVideo end |
