mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
linting
This commit is contained in:
parent
440105976f
commit
65e45c4079
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ def get_playlist_videos(db, playlist, offset, locale = nil, continuation = nil)
|
||||||
else
|
else
|
||||||
videos = [] of PlaylistVideo
|
videos = [] of PlaylistVideo
|
||||||
|
|
||||||
until videos.size >= 50 || videos.size == playlist.video_count || offset >= playlist.video_count
|
until videos.size >= 50 || videos.size == playlist.video_count || offset >= playlist.video_count
|
||||||
if offset >= 100
|
if offset >= 100
|
||||||
# Normalize offset to match youtube's behavior (100 videos chunck per request)
|
# Normalize offset to match youtube's behavior (100 videos chunck per request)
|
||||||
normalized_offset = (offset / 100).to_i64 * 100_i64
|
normalized_offset = (offset / 100).to_i64 * 100_i64
|
||||||
|
|
Loading…
Reference in a new issue