mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-04 13:07:07 +00:00
feat: Detect videoplayback proxy from invidious-companion and add it to the CSP header
This commit is contained in:
13
src/invidious/jobs/backend_checker.cr
Normal file
13
src/invidious/jobs/backend_checker.cr
Normal file
@@ -0,0 +1,13 @@
|
||||
class Invidious::Jobs::CheckBackend < Invidious::Jobs::BaseJob
|
||||
def initialize
|
||||
end
|
||||
|
||||
def begin
|
||||
loop do
|
||||
BackendInfo.get_videoplayback_proxy
|
||||
LOGGER.info("Backend Checker: Done, sleeping for 60 seconds")
|
||||
sleep 60.seconds
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user