mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-10 20:25:37 +00:00
parent
aa7de1ed4c
commit
4f162dfb53
@ -110,7 +110,7 @@ def extract_video_info(video_id : String)
|
||||
|
||||
if player_response["streamingData"]? && player_response.dig?("streamingData", "adaptiveFormats", 0, "url").nil?
|
||||
LOGGER.warn("Missing URLs for adaptive formats, falling back to other YT clients.")
|
||||
players_fallback = [YoutubeAPI::ClientType::WebMobile, YoutubeAPI::ClientType::TvHtml5]
|
||||
players_fallback = [YoutubeAPI::ClientType::TvHtml5, YoutubeAPI::ClientType::WebMobile]
|
||||
players_fallback.each do |player_fallback|
|
||||
client_config.client_type = player_fallback
|
||||
player_fallback_response = try_fetch_streaming_data(video_id, client_config)
|
||||
|
Loading…
x
Reference in New Issue
Block a user