mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 09:17:47 +08:00
Continuing development.
This commit is contained in:
parent
e1b8d0589e
commit
d7bfa7a438
1 changed files with 12 additions and 0 deletions
|
@ -1314,6 +1314,18 @@ def save_settings():
|
|||
settings.anticaptcha.anti_captcha_key = text_type(settings_anti_captcha_key)
|
||||
settings.deathbycaptcha.username = text_type(settings_death_by_captcha_username)
|
||||
settings.deathbycaptcha.password = text_type(settings_death_by_captcha_password)
|
||||
|
||||
# set anti-captcha provider and key
|
||||
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 == 'AntiCaptchaProxyLessPitcher':
|
||||
os.environ["ANTICAPTCHA_CLASS"] = 'DBCProxyLess'
|
||||
os.environ["ANTICAPTCHA_ACCOUNT_KEY"] = ':'.join(
|
||||
{settings.deathbycaptcha.username, settings.deathbycaptcha.password})
|
||||
else:
|
||||
os.environ["ANTICAPTCHA_CLASS"] = ''
|
||||
|
||||
settings.general.minimum_score_movie = text_type(settings_general_minimum_score_movies)
|
||||
settings.general.use_embedded_subs = text_type(settings_general_embedded)
|
||||
settings.general.adaptive_searching = text_type(settings_general_adaptive_searching)
|
||||
|
|
Loading…
Reference in a new issue