mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-14 17:15:09 +00:00
20 lines
407 B
Crystal
20 lines
407 B
Crystal
class Invidious::Jobs::UpdateDecryptFunctionJob < Invidious::Jobs::BaseJob
|
|
private getter logger : Invidious::LogHandler
|
|
|
|
def initialize(@logger)
|
|
end
|
|
|
|
def begin
|
|
loop do
|
|
begin
|
|
DECRYPT_FUNCTION.update_decrypt_function
|
|
rescue ex
|
|
logger.error("UpdateDecryptFunctionJob : #{ex.message}")
|
|
ensure
|
|
sleep 1.minute
|
|
Fiber.yield
|
|
end
|
|
end
|
|
end
|
|
end
|