From 9d26d67de3ad5cb9194d2a08a1b4a7fd8c96c61d Mon Sep 17 00:00:00 2001 From: syeopite <70992037+syeopite@users.noreply.github.com> Date: Fri, 10 Sep 2021 07:57:35 +0000 Subject: [PATCH] Unregister captcha job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/invidious.cr | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 5ad2dd91..fa585435 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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)