mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 09:17:47 +08:00
Fix for #391.
This commit is contained in:
parent
bc9a1bc113
commit
5b05b47e59
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ if settings.general.anti_captcha_provider == 'anti-captcha':
|
|||
os.environ["ANTICAPTCHA_CLASS"] = 'AntiCaptchaProxyLess'
|
||||
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = settings.anticaptcha.anti_captcha_key
|
||||
elif settings.general.anti_captcha_provider == 'death-by-captcha':
|
||||
os.environ["ANTICAPTCHA_CLASS"] = 'DBCProxyLess'
|
||||
os.environ["ANTICAPTCHA_CLASS"] = 'DeathByCaptchaProxyLess'
|
||||
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join({settings.deathbycaptcha.username, settings.deathbycaptcha.password})
|
||||
else:
|
||||
os.environ["ANTICAPTCHA_CLASS"] = ''
|
||||
|
|
|
@ -1321,7 +1321,7 @@ def save_settings():
|
|||
os.environ["ANTICAPTCHA_CLASS"] = 'AntiCaptchaProxyLess'
|
||||
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = settings.anticaptcha.anti_captcha_key
|
||||
elif settings.general.anti_captcha_provider == 'death-by-captcha':
|
||||
os.environ["ANTICAPTCHA_CLASS"] = 'DBCProxyLess'
|
||||
os.environ["ANTICAPTCHA_CLASS"] = 'DeathByCaptchaProxyLess'
|
||||
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join(
|
||||
{settings.deathbycaptcha.username, settings.deathbycaptcha.password})
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue