From 3935de56272b4689fcb9ca54d30966342dded2a2 Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Wed, 24 Jul 2024 19:31:27 +0200 Subject: [PATCH] delete patch use web client --- patches/001-use-web-client.patch | 33 -------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 patches/001-use-web-client.patch diff --git a/patches/001-use-web-client.patch b/patches/001-use-web-client.patch deleted file mode 100644 index 2df86d2..0000000 --- a/patches/001-use-web-client.patch +++ /dev/null @@ -1,33 +0,0 @@ -From b57901b75714a83467dc1a85e423eacda0c1a8cd Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?=C3=89milien=20=28perso=29?= - <4016501+unixfox@users.noreply.github.com> -Date: Fri, 7 Jun 2024 16:35:21 +0000 -Subject: [PATCH 1/1] switch to WEB client - ---- - src/invidious/videos/parser.cr | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr -index 0e1a947c..2f856b16 100644 ---- a/src/invidious/videos/parser.cr -+++ b/src/invidious/videos/parser.cr -@@ -107,13 +107,13 @@ def extract_video_info(video_id : String) - # 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 -+ client_config.client_type = YoutubeAPI::ClientType::Web - new_player_response = try_fetch_streaming_data(video_id, client_config) - end - - # Last hope - if new_player_response.nil? -- client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed -+ client_config.client_type = YoutubeAPI::ClientType::WebEmbeddedPlayer - new_player_response = try_fetch_streaming_data(video_id, client_config) - end - --- -2.45.1 -