summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilien <4016501+unixfox@users.noreply.github.com>2025-05-17 22:24:31 +0200
committerEmilien <4016501+unixfox@users.noreply.github.com>2025-05-17 22:24:31 +0200
commit4f162dfb5391fe685593baa5ee2c4c6322e879f5 (patch)
tree4e96b033801c0643ce202b289ddad3e55f0649ae
parentaa7de1ed4c28d1db28129055b2373ef6145a5f3d (diff)
downloadinvidious-4f162dfb5391fe685593baa5ee2c4c6322e879f5.tar.gz
invidious-4f162dfb5391fe685593baa5ee2c4c6322e879f5.tar.bz2
invidious-4f162dfb5391fe685593baa5ee2c4c6322e879f5.zip
fix: fallback first with TVHTML then MWEB
fixes #5273
-rw-r--r--src/invidious/videos/parser.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr
index c63623ee..b5fc1444 100644
--- a/src/invidious/videos/parser.cr
+++ b/src/invidious/videos/parser.cr
@@ -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)