mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Optimize assigning of on_response_received_endpoints
This commit is contained in:
parent
575c66efd3
commit
b8f27a42a7
1 changed files with 1 additions and 2 deletions
|
@ -72,8 +72,7 @@ def fetch_youtube_comments(id, cursor, format, locale, thin_mode, region, sort_b
|
||||||
response = YoutubeAPI.next(continuation: ctoken, client_config: client_config)
|
response = YoutubeAPI.next(continuation: ctoken, client_config: client_config)
|
||||||
contents = nil
|
contents = nil
|
||||||
|
|
||||||
if response["onResponseReceivedEndpoints"]?
|
if on_response_received_endpoints = response["onResponseReceivedEndpoints"]?
|
||||||
on_response_received_endpoints = response["onResponseReceivedEndpoints"]
|
|
||||||
header = nil
|
header = nil
|
||||||
on_response_received_endpoints.as_a.each do |item|
|
on_response_received_endpoints.as_a.each do |item|
|
||||||
if item["reloadContinuationItemsCommand"]?
|
if item["reloadContinuationItemsCommand"]?
|
||||||
|
|
Loading…
Reference in a new issue