From 509ca19ca592a7e97bc1c125e325e46fc779948e Mon Sep 17 00:00:00 2001 From: "Ashley :3" Date: Fri, 7 Jun 2024 16:53:54 +0300 Subject: [PATCH] Video: try using the TvHtml5ScreenEmbed client type to get videos. --- src/invidious/videos/parser.cr | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 0e1a947cc..9d5b5da97 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -103,16 +103,8 @@ def extract_video_info(video_id : String) new_player_response = nil if reason.nil? - # Fetch the video streams using an Android client in order to get the - # decrypted URLs and maybe fix throttling issues (#2194). See the - # following issue for an explanation about decrypted URLs: - # https://github.com/TeamNewPipe/NewPipeExtractor/issues/562 - client_config.client_type = YoutubeAPI::ClientType::AndroidTestSuite - new_player_response = try_fetch_streaming_data(video_id, client_config) - end - - # Last hope - if new_player_response.nil? + # Fetch the video streams using an TV client in order to get the + # decrypted URLs and try fixing 4734. client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed new_player_response = try_fetch_streaming_data(video_id, client_config) end