diff --git a/src/invidious/helpers/session_tokens.cr b/src/invidious/helpers/session_tokens.cr index cd5b1eb6..f75ed50b 100644 --- a/src/invidious/helpers/session_tokens.cr +++ b/src/invidious/helpers/session_tokens.cr @@ -10,7 +10,7 @@ module SessionTokens LOGGER.error("RefreshSessionTokens: Expected response to have status code 200 but got #{response.status_code} from #{CONFIG.tokens_server}") end json = JSON.parse(response.body) - @@po_token = json.try &.["potoken"].as_s || nil + @@po_token = json.try &.["potoken"].as_s || nil @@visitor_data = json.try &.["visitorData"].as_s || nil rescue ex LOGGER.error("RefreshSessionTokens: Failed to fetch tokens from #{CONFIG.tokens_server}: #{ex.message}") diff --git a/src/invidious/http_server/utils.cr b/src/invidious/http_server/utils.cr index 850bd2b0..9606e8ab 100644 --- a/src/invidious/http_server/utils.cr +++ b/src/invidious/http_server/utils.cr @@ -19,9 +19,9 @@ module Invidious::HttpServer LOGGER.debug("CheckExternalProxy: Proxy '#{proxy}' is not available") end end - if @@proxy_alive.empty? - LOGGER.warn("CheckExternalProxy: No proxies alive! Using own server proxy") - end + if @@proxy_alive.empty? + LOGGER.warn("CheckExternalProxy: No proxies alive! Using own server proxy") + end end def get_external_proxy