From 2d20e73d99fdfa08c2b26d447051c43d2742644e Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sat, 24 May 2025 11:06:42 -0400 Subject: [PATCH] set offset on index for backends status --- locales/en-US.json | 2 +- src/invidious/routes/before_all.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/en-US.json b/locales/en-US.json index c18bebdc..39b438c8 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -531,7 +531,7 @@ "username_empty": "Username cannot be empty", "username_is_the_same": "This is your username, use another one", "username_taken": "Username is already taken, use another one", - "backend_unavailable": "The backend you selected is unavailable. You have been redirected to the next one", + "backend_unavailable": "The backend you selected is unavailable. You have been redirected to another one", "timeline_parse_error_placeholder_heading": "Unable to parse item", "timeline_parse_error_placeholder_message": "Invidious encountered an error while trying to parse this item. For more information see below:", "timeline_parse_error_show_technical_details": "Show technical details", diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.cr index fc6ed5e5..20113a6c 100644 --- a/src/invidious/routes/before_all.cr +++ b/src/invidious/routes/before_all.cr @@ -57,7 +57,7 @@ module Invidious::Routes::BeforeAll companion_status = BackendInfo.get_status if companion_status[current_companion] != 2 - alive_companion = companion_status.index(2) + alive_companion = companion_status.index(2, offset: current_companion) if alive_companion env.set "companion_switched", true current_companion = alive_companion