Invidious is an alternative front-end to YouTube
moved comments
epicsam123afb0aad7d36b
diff --git a/src/invidious/routes/misc.cr b/src/invidious/routes/misc.crindex 27a28994..96d6e61f 100644--- a/src/invidious/routes/misc.cr+++ b/src/invidious/routes/misc.cr@@ -46,13 +46,13 @@ module Invidious::Routes::Miscif instance_list.empty?instance_url = redirect_urlelse- # Sample returns an array- # Instances are packaged as {region, domain} in the instance list# Filter out the current instanceother_available_instances = instance_list.reject! { |region, domain| domain == CONFIG.domain }# If there are any other instances, select a random oneif other_available_instances.any?+ # Sample returns an array+ # Instances are packaged as {region, domain} in the instance listinstance_url = other_available_instances.sample(1)[0][1]else# If the current instance is the only one, use the redirect URL as fallback