check for signatureCipher too

pull/5345/head
Fijxu 2025-06-12 16:06:04 -04:00
rodzic 37be513e14
commit 0c96e0977f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 32C1DDF333EDA6A4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -118,7 +118,7 @@ def extract_video_info(video_id : String)
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["adaptiveFormats"] = player_fallback_response["streamingData"]["adaptiveFormats"]
player_response["streamingData"] = JSON::Any.new(streaming_data)