From 4ab96284dcca5c13128962b09a397870513fc01c Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Sun, 15 Jan 2023 16:28:42 +0100 Subject: [PATCH] remove patch PR 3563 --- patches/010-3563.patch | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 patches/010-3563.patch diff --git a/patches/010-3563.patch b/patches/010-3563.patch deleted file mode 100644 index d92e245..0000000 --- a/patches/010-3563.patch +++ /dev/null @@ -1,26 +0,0 @@ -From d6087fac472711376762cfb2c5f7672f84f6d4fe Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?=C3=89milien=20Devos?= -Date: Sun, 15 Jan 2023 12:07:58 +0000 -Subject: [PATCH] Don't continue when LOGIN_REQUIRED and no videoDetails - ---- - src/invidious/videos/parser.cr | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr -index 5df4928684..5c3239755a 100644 ---- a/src/invidious/videos/parser.cr -+++ b/src/invidious/videos/parser.cr -@@ -66,8 +66,10 @@ def extract_video_info(video_id : String, proxy_region : String? = nil) - reason ||= subreason.try &.[]("runs").as_a.map(&.[]("text")).join("") - reason ||= player_response.dig("playabilityStatus", "reason").as_s - -- # Stop here if video is not a scheduled livestream -- if !{"LIVE_STREAM_OFFLINE", "LOGIN_REQUIRED"}.any?(playability_status) -+ # Stop here if video is not a scheduled livestream or -+ # for LOGIN_REQUIRED when videoDetails element is not found because retrying won't help -+ if !{"LIVE_STREAM_OFFLINE", "LOGIN_REQUIRED"}.any?(playability_status) || -+ playability_status == "LOGIN_REQUIRED" && !player_response.dig?("videoDetails") - return { - "version" => JSON::Any.new(Video::SCHEMA_VERSION.to_i64), - "reason" => JSON::Any.new(reason),