Skip to content

Commit 4f162df

Browse files
committed
fix: fallback first with TVHTML then MWEB
fixes #5273
1 parent aa7de1e commit 4f162df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/invidious/videos/parser.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def extract_video_info(video_id : String)
110110

111111
if player_response["streamingData"]? && player_response.dig?("streamingData", "adaptiveFormats", 0, "url").nil?
112112
LOGGER.warn("Missing URLs for adaptive formats, falling back to other YT clients.")
113-
players_fallback = [YoutubeAPI::ClientType::WebMobile, YoutubeAPI::ClientType::TvHtml5]
113+
players_fallback = [YoutubeAPI::ClientType::TvHtml5, YoutubeAPI::ClientType::WebMobile]
114114
players_fallback.each do |player_fallback|
115115
client_config.client_type = player_fallback
116116
player_fallback_response = try_fetch_streaming_data(video_id, client_config)

0 commit comments

Comments
 (0)