|
|
|
@ -20,11 +20,11 @@ os.environ["SZ_USER_AGENT"] = "Bazarr/1"
|
|
|
|
|
# set anti-captcha provider and key
|
|
|
|
|
if settings.general.anti_captcha_provider == 'anti-captcha' and settings.anticaptcha.anti_captcha_key != "":
|
|
|
|
|
os.environ["ANTICAPTCHA_CLASS"] = 'AntiCaptchaProxyLess'
|
|
|
|
|
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = settings.anticaptcha.anti_captcha_key
|
|
|
|
|
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = str(settings.anticaptcha.anti_captcha_key)
|
|
|
|
|
elif settings.general.anti_captcha_provider == 'death-by-captcha' and settings.deathbycaptcha.username != "" and settings.deathbycaptcha.password != "":
|
|
|
|
|
os.environ["ANTICAPTCHA_CLASS"] = 'DeathByCaptchaProxyLess'
|
|
|
|
|
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join(
|
|
|
|
|
{settings.deathbycaptcha.username, settings.deathbycaptcha.password})
|
|
|
|
|
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = str(':'.join(
|
|
|
|
|
{settings.deathbycaptcha.username, settings.deathbycaptcha.password}))
|
|
|
|
|
else:
|
|
|
|
|
os.environ["ANTICAPTCHA_CLASS"] = ''
|
|
|
|
|
|
|
|
|
|