Tokens: Refresh po_token and visitor_data every 5 seconds

Closes #11
This commit is contained in:
Fijxu
2024-10-13 15:57:51 -03:00
parent 976e1ccf5a
commit eb2670fe49
6 changed files with 46 additions and 10 deletions

View File

@@ -193,6 +193,10 @@ if !CONFIG.external_videoplayback_proxy.empty?
Invidious::Jobs.register Invidious::Jobs::CheckExternalProxy.new
end
if CONFIG.refresh_tokens
Invidious::Jobs.register Invidious::Jobs::RefreshTokens.new
end
Invidious::Jobs.start_all
def popular_videos