mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
parent
ae353cef2e
commit
93198438b8
1 changed files with 2 additions and 1 deletions
|
@ -437,7 +437,8 @@ end
|
||||||
|
|
||||||
def get_playlist_videos(db, playlist, offset, locale = nil, continuation = nil)
|
def get_playlist_videos(db, playlist, offset, locale = nil, continuation = nil)
|
||||||
# Show empy playlist if requested page is out of range
|
# 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
|
return [] of PlaylistVideo
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue