Unregister captcha job

Invidious now fully uses InnerTube which lacks captchas*. There's no reason to have the captcha job constantly run in the background anymore. However, in case YouTube does add captchas into InnerTube, the source code of the job hasn't been removed. All this commit does is remove the job from the compiled binary.

* To a certain degree — reports do indicate that there is some sort of block/rate-limiting but the tolerance is much higher than what YouTube typically has.
This commit is contained in:
syeopite 2021-09-10 07:57:35 +00:00 committed by GitHub
parent 50c8afb525
commit 9d26d67de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,10 +153,6 @@ 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)