tokens: use http instead of redis to get the tokens

It should be compatible with github.com/iv-org/youtube-trusted-session-generator
This commit is contained in:
Fijxu
2024-12-14 17:10:30 -03:00
parent 91bcec72c8
commit 58c4d8c951
5 changed files with 41 additions and 46 deletions

View File

@@ -213,8 +213,10 @@ if !CONFIG.external_videoplayback_proxy.empty?
Invidious::Jobs.register Invidious::Jobs::CheckExternalProxy.new
end
if CONFIG.refresh_tokens
if !CONFIG.tokens_server.empty?
Invidious::Jobs.register Invidious::Jobs::RefreshTokens.new
else
LOGGER.info("jobs: Disabling RefreshTokens job. Invidious will use the tokens that are on the configuration file")
end
Invidious::Jobs.start_all