From d14a81acff0d64cb47a9eff5179bd4179b10f548 Mon Sep 17 00:00:00 2001 From: pluja Date: Thu, 15 Oct 2020 06:57:51 +0200 Subject: [PATCH] Fix --- youtube/util.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/youtube/util.py b/youtube/util.py index 14222bc..3796f64 100644 --- a/youtube/util.py +++ b/youtube/util.py @@ -127,8 +127,10 @@ def bypass_captcha(session, response, url, cookies): config = json.load(open('yotter-config.json')) # Generate anti-captcha request payload body = {'clientKey': config['anticaptcha']} - task = {'type': "NoCaptchaTaskProxyless", 'websiteURL': url, - 'websiteKey': site_key, "recaptchaDataSValue": s_value} + task = {'type': "NoCaptchaTaskProxyless", + 'websiteURL': url, + 'websiteKey': site_key, + 'recaptchaDataSValue': s_value} body['task'] = task # Create the task.