mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-29 10:08:30 +00:00
check for signatureCipher too
This commit is contained in:
parent
37be513e14
commit
0c96e0977f
@ -118,7 +118,7 @@ def extract_video_info(video_id : String)
|
|||||||
|
|
||||||
next if !(player_fallback_response = try_fetch_streaming_data(video_id, client_config))
|
next if !(player_fallback_response = try_fetch_streaming_data(video_id, client_config))
|
||||||
|
|
||||||
if player_fallback_response.dig?("streamingData", "adaptiveFormats", 0, "url")
|
if player_fallback_response.dig?("streamingData", "adaptiveFormats", 0, "url") || player_fallback_response.dig?("streamingData", "adaptiveFormats", 0, "signatureCipher")
|
||||||
streaming_data = player_response["streamingData"].as_h
|
streaming_data = player_response["streamingData"].as_h
|
||||||
streaming_data["adaptiveFormats"] = player_fallback_response["streamingData"]["adaptiveFormats"]
|
streaming_data["adaptiveFormats"] = player_fallback_response["streamingData"]["adaptiveFormats"]
|
||||||
player_response["streamingData"] = JSON::Any.new(streaming_data)
|
player_response["streamingData"] = JSON::Any.new(streaming_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user