mirror of
https://git.nerdvpn.de/NerdVPN.de/invidious
synced 2026-02-14 22:51:42 +01:00
Add new error messages
This commit is contained in:
@@ -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 = "<h2>Error loading video</h2><p style='font-size: 0.8em; margin: -20px 0 20px 0;'>Received error from YouTube: " + message + "<br /><br />Please try reloading the page or try switching to another backend.</p>"
|
||||
+ 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 = "<h2>Error loading video</h2><p style='font-size: 0.8em; margin: -20px 0 20px 0;'>Original error message: " + message + "<br /><br /><b>Please try reloading the page or try switching to another backend. This will fix it almost all the time.</b></p>"
|
||||
+ else
|
||||
+ error_message = translate(locale, message)
|
||||
+ end
|
||||
|
||||
Reference in New Issue
Block a user