mirror of
https://github.com/iv-org/invidious.git
synced 2025-02-02 20:09:42 +05:30
Removed unused attribute
This commit is contained in:
parent
6236cea33e
commit
76369eb599
@ -93,7 +93,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil)
|
|||||||
player_response = player_response.merge(next_response)
|
player_response = player_response.merge(next_response)
|
||||||
end
|
end
|
||||||
|
|
||||||
params = parse_video_info(video_id, player_response, proxy_region)
|
params = parse_video_info(video_id, player_response)
|
||||||
params["reason"] = JSON::Any.new(reason) if reason
|
params["reason"] = JSON::Any.new(reason) if reason
|
||||||
|
|
||||||
new_player_response = nil
|
new_player_response = nil
|
||||||
@ -158,7 +158,7 @@ def try_fetch_streaming_data(id : String, client_config : YoutubeAPI::ClientConf
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any), proxy_region : String? = nil) : Hash(String, JSON::Any)
|
def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any)) : Hash(String, JSON::Any)
|
||||||
# Top level elements
|
# Top level elements
|
||||||
|
|
||||||
main_results = player_response.dig?("contents", "twoColumnWatchNextResults")
|
main_results = player_response.dig?("contents", "twoColumnWatchNextResults")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user