remove fallback to TV client

This commit is contained in:
Fijxu 2025-06-15 17:45:53 -04:00
parent cf0a68bd77
commit d51e1cb051
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -111,7 +111,7 @@ def extract_video_info(video_id : String)
if !CONFIG.invidious_companion.present? if !CONFIG.invidious_companion.present?
if player_response.dig?("streamingData", "adaptiveFormats", 0, "url").nil? if player_response.dig?("streamingData", "adaptiveFormats", 0, "url").nil?
LOGGER.warn("Missing URLs for adaptive formats, falling back to other YT clients.") LOGGER.warn("Missing URLs for adaptive formats, falling back to other YT clients.")
players_fallback = {YoutubeAPI::ClientType::TvHtml5, YoutubeAPI::ClientType::TvSimply, YoutubeAPI::ClientType::WebMobile} players_fallback = {YoutubeAPI::ClientType::TvSimply, YoutubeAPI::ClientType::WebMobile}
players_fallback.each do |player_fallback| players_fallback.each do |player_fallback|
client_config.client_type = player_fallback client_config.client_type = player_fallback