mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-24 03:48:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user