kopia lustrzana https://github.com/iv-org/invidious
linting
rodzic
dccdf38ce7
commit
62dc629337
|
@ -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",
|
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)
|
playlist.id, playlist.index, offset, as: PlaylistVideo)
|
||||||
else
|
else
|
||||||
|
|
||||||
if continuation
|
if continuation
|
||||||
initial_data = request_youtube_api_next(continuation, playlist.id)
|
initial_data = request_youtube_api_next(continuation, playlist.id)
|
||||||
offset = initial_data["contents"]["twoColumnWatchNextResults"]["playlist"]["playlist"]["currentIndex"].as_i
|
offset = initial_data["contents"]["twoColumnWatchNextResults"]["playlist"]["playlist"]["currentIndex"].as_i
|
||||||
|
|
Ładowanie…
Reference in New Issue