1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00
This commit is contained in:
Louis Vézina 2019-04-11 21:56:50 -04:00
parent 1783c0cd06
commit bc9a1bc113
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ os.environ["SZ_USER_AGENT"] = "Bazarr/1"
if settings.general.anti_captcha_provider == 'anti-captcha': if settings.general.anti_captcha_provider == 'anti-captcha':
os.environ["ANTICAPTCHA_CLASS"] = 'AntiCaptchaProxyLess' os.environ["ANTICAPTCHA_CLASS"] = 'AntiCaptchaProxyLess'
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = settings.anticaptcha.anti_captcha_key os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = settings.anticaptcha.anti_captcha_key
elif settings.general.anti_captcha_provider == 'AntiCaptchaProxyLessPitcher': elif settings.general.anti_captcha_provider == 'death-by-captcha':
os.environ["ANTICAPTCHA_CLASS"] = 'DBCProxyLess' os.environ["ANTICAPTCHA_CLASS"] = 'DBCProxyLess'
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join({settings.deathbycaptcha.username, settings.deathbycaptcha.password}) os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join({settings.deathbycaptcha.username, settings.deathbycaptcha.password})
else: else:

View file

@ -1320,7 +1320,7 @@ def save_settings():
if settings.general.anti_captcha_provider == 'anti-captcha': if settings.general.anti_captcha_provider == 'anti-captcha':
os.environ["ANTICAPTCHA_CLASS"] = 'AntiCaptchaProxyLess' os.environ["ANTICAPTCHA_CLASS"] = 'AntiCaptchaProxyLess'
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = settings.anticaptcha.anti_captcha_key os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = settings.anticaptcha.anti_captcha_key
elif settings.general.anti_captcha_provider == 'AntiCaptchaProxyLessPitcher': elif settings.general.anti_captcha_provider == 'death-by-captcha':
os.environ["ANTICAPTCHA_CLASS"] = 'DBCProxyLess' os.environ["ANTICAPTCHA_CLASS"] = 'DBCProxyLess'
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join( os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join(
{settings.deathbycaptcha.username, settings.deathbycaptcha.password}) {settings.deathbycaptcha.username, settings.deathbycaptcha.password})