mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-11 01:23:38 +08:00
Continuing development.
This commit is contained in:
parent
8aef7bc0d3
commit
a619bbbe99
2 changed files with 31 additions and 1 deletions
|
@ -17,6 +17,16 @@ from get_args import args
|
|||
# set subliminal_patch user agent
|
||||
os.environ["SZ_USER_AGENT"] = "Bazarr/1"
|
||||
|
||||
# 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"] = None
|
||||
|
||||
# Check if args.config_dir exist
|
||||
if not os.path.exists(args.config_dir):
|
||||
# Create config_dir directory tree
|
||||
|
|
|
@ -1256,7 +1256,17 @@
|
|||
<div class="middle aligned row anticaptcha">
|
||||
<div class="two wide column"></div>
|
||||
<div class="right aligned four wide column">
|
||||
<label>Key</label>
|
||||
<label>Provider website</label>
|
||||
</div>
|
||||
<div class="five wide column">
|
||||
<a href="http://getcaptchasolution.com/eixxo1rsnw" target="_blank">Anti-Captcha.com</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="middle aligned row anticaptcha">
|
||||
<div class="two wide column"></div>
|
||||
<div class="right aligned four wide column">
|
||||
<label>Account Key</label>
|
||||
</div>
|
||||
<div class="five wide column">
|
||||
<div class='field'>
|
||||
|
@ -1268,6 +1278,16 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="middle aligned row deathbycaptcha">
|
||||
<div class="two wide column"></div>
|
||||
<div class="right aligned four wide column">
|
||||
<label>Provider website</label>
|
||||
</div>
|
||||
<div class="five wide column">
|
||||
<a href="https://www.deathbycaptcha.com" target="_blank">DeathByCaptcha.com</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="middle aligned row deathbycaptcha">
|
||||
<div class="two wide column"></div>
|
||||
<div class="right aligned four wide column">
|
||||
|
|
Loading…
Reference in a new issue