Invidious is an alternative front-end to YouTube
Fix for issue #1989
Samantaz Fox93198438b81d
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.crindex 71f6a9b8..073a9986 100644--- a/src/invidious/playlists.cr+++ b/src/invidious/playlists.cr@@ -437,7 +437,8 @@ enddef 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 < 0return [] of PlaylistVideoend