Invidious is an alternative front-end to YouTube
Optimize assigning of on_response_received_endpoints
syeopiteb8f27a42a751
diff --git a/src/invidious/comments.cr b/src/invidious/comments.crindex 3370b088..ffdce000 100644--- a/src/invidious/comments.cr+++ b/src/invidious/comments.cr@@ -72,8 +72,7 @@ def fetch_youtube_comments(id, cursor, format, locale, thin_mode, region, sort_bresponse = YoutubeAPI.next(continuation: ctoken, client_config: client_config)contents = nil- if response["onResponseReceivedEndpoints"]?- on_response_received_endpoints = response["onResponseReceivedEndpoints"]+ if on_response_received_endpoints = response["onResponseReceivedEndpoints"]?header = nilon_response_received_endpoints.as_a.each do |item|if item["reloadContinuationItemsCommand"]?