diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2021-04-07 15:13:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-07 15:13:41 +0200 |
| commit | 93198438b81db0ba3ad3a33233eabdcd84152375 (patch) | |
| tree | ae4387372e5290b14f875fff860175dc7ec4d216 | |
| parent | ae353cef2e3013bc1d995d3c607e7ef2b76f7ffe (diff) | |
| download | invidious-93198438b81db0ba3ad3a33233eabdcd84152375.tar.gz invidious-93198438b81db0ba3ad3a33233eabdcd84152375.tar.bz2 invidious-93198438b81db0ba3ad3a33233eabdcd84152375.zip | |
Fix for issue #1989
Fixes #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 |
