Revert "Unregister captcha job (#2390)"

This reverts commit 87f46a7532dbb8abdb09413bcc2a62f63e0d4c9e.
This commit is contained in:
syeopite 2021-10-16 06:56:12 -07:00 committed by syeopite
parent 2b81a82620
commit b89238b6ea
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

View File

@ -155,6 +155,10 @@ if CONFIG.popular_enabled
Invidious::Jobs.register Invidious::Jobs::PullPopularVideosJob.new(PG_DB)
end
if CONFIG.captcha_key
Invidious::Jobs.register Invidious::Jobs::BypassCaptchaJob.new
end
connection_channel = Channel({Bool, Channel(PQ::Notification)}).new(32)
Invidious::Jobs.register Invidious::Jobs::NotificationJob.new(connection_channel, CONFIG.database_url)