Compare commits

...

2 Commits

Author SHA1 Message Date
Emilien
f07859e11b Release v2.20250517.0 2025-05-17 22:27:05 +02:00
Emilien
4f162dfb53 fix: fallback first with TVHTML then MWEB
fixes #5273
2025-05-17 22:24:31 +02:00
2 changed files with 5 additions and 1 deletions

View File

@@ -2,6 +2,10 @@
## vX.Y.0 (future)
## v2.20250517.0
Inverse fallback for the YouTube client from TVHTML then MWEB. Fixes https://github.com/iv-org/invidious/issues/5273
## v2.20250504.0
Small release with quick workaround fix for issue #4251 (Nil assertion failed).

View File

@@ -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)