From 5b1c1de323b22a6f684e8a692da3cd5697d18252 Mon Sep 17 00:00:00 2001 From: Sommerwiesel Date: Wed, 18 Jun 2025 11:56:03 +0200 Subject: [PATCH] Add new error messages --- patches/014-rewrite-obnoxious-blocked-message.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/014-rewrite-obnoxious-blocked-message.patch b/patches/014-rewrite-obnoxious-blocked-message.patch index bfc0967..a0ce0cb 100644 --- a/patches/014-rewrite-obnoxious-blocked-message.patch +++ b/patches/014-rewrite-obnoxious-blocked-message.patch @@ -7,8 +7,8 @@ index b2df682d..7534ef31 100644 locale = env.get("preferences").as(Preferences).locale - error_message = translate(locale, message) -+ if message.includes?("This helps protect our community") || message.includes?("Watch on the latest version of YouTube") || message.includes?("Sign in to confirm you’re not a bot") || message.includes?("Please sign in") || message.includes?("This content isn't available, try again later") -+ error_message = "

Error loading video

Received error from YouTube: " + message + "

Please try reloading the page or try switching to another backend.

" ++ if message.includes?("Error while communicating with Invidious companion") || message.includes?("YouTube is currently trying to block Invidious instances") || message.includes?("This helps protect our community") || message.includes?("Watch on the latest version of YouTube") || message.includes?("Sign in to confirm you’re not a bot") || message.includes?("Please sign in") || message.includes?("This content isn't available, try again later") ++ error_message = "

Error loading video

Original error message: " + message + "

Please try reloading the page or try switching to another backend. This will fix it almost all the time.

" + else + error_message = translate(locale, message) + end