diff options
| author | Émilien (perso) <4016501+unixfox@users.noreply.github.com> | 2025-05-08 19:55:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-08 19:55:22 +0200 |
| commit | 9e3c0dfd85443950b10d90793824d682c76af82c (patch) | |
| tree | 0c88207b3c59d175ddd5f89f261933565ae7bb2a /src | |
| parent | d1bc15b8bffe7afad6000208dfe2cbd5601b4786 (diff) | |
| download | invidious-9e3c0dfd85443950b10d90793824d682c76af82c.tar.gz invidious-9e3c0dfd85443950b10d90793824d682c76af82c.tar.bz2 invidious-9e3c0dfd85443950b10d90793824d682c76af82c.zip | |
fix: fallback first with TVHTML then MWEB
fixes #5273
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos/parser.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 9699a37a..15bd00b6 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -111,7 +111,7 @@ def extract_video_info(video_id : String) if !CONFIG.invidious_companion.present? 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) |
