This commit is contained in:
diogo 2021-07-19 12:15:03 +03:00 committed by Samantaz Fox
parent dccdf38ce7
commit 62dc629337
No known key found for this signature in database
GPG Key ID: F42821059186176E

View File

@ -437,7 +437,6 @@ def get_playlist_videos(db, playlist, offset, locale = nil, continuation = nil)
db.query_all("SELECT * FROM playlist_videos WHERE plid = $1 ORDER BY array_position($2, index) LIMIT 100 OFFSET $3",
playlist.id, playlist.index, offset, as: PlaylistVideo)
else
if continuation
initial_data = request_youtube_api_next(continuation, playlist.id)
offset = initial_data["contents"]["twoColumnWatchNextResults"]["playlist"]["playlist"]["currentIndex"].as_i