Add fallback to TvSimply client

This commit is contained in:
Fijxu 2025-06-12 01:25:59 -04:00
parent 4daf1f0818
commit 37be513e14
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 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::TvHtml5, YoutubeAPI::ClientType::WebMobile}
players_fallback = {YoutubeAPI::ClientType::TvHtml5, YoutubeAPI::ClientType::TvSimply, YoutubeAPI::ClientType::WebMobile}
players_fallback.each do |player_fallback|
client_config.client_type = player_fallback