mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Merge branch 'dev' into nightly
This commit is contained in:
commit
e6900ee16b
1 changed files with 5 additions and 2 deletions
|
@ -21,7 +21,10 @@ def autoFork(section, inputCategory):
|
||||||
apikey = cfg.get("apikey")
|
apikey = cfg.get("apikey")
|
||||||
ssl = int(cfg.get("ssl", 0))
|
ssl = int(cfg.get("ssl", 0))
|
||||||
web_root = cfg.get("web_root", "")
|
web_root = cfg.get("web_root", "")
|
||||||
|
try:
|
||||||
fork = core.FORKS.items()[core.FORKS.keys().index(cfg.get("fork", "auto"))]
|
fork = core.FORKS.items()[core.FORKS.keys().index(cfg.get("fork", "auto"))]
|
||||||
|
except:
|
||||||
|
fork = "auto"
|
||||||
protocol = "https://" if ssl else "http://"
|
protocol = "https://" if ssl else "http://"
|
||||||
|
|
||||||
detected = False
|
detected = False
|
||||||
|
@ -68,7 +71,7 @@ def autoFork(section, inputCategory):
|
||||||
r = []
|
r = []
|
||||||
if r and r.ok:
|
if r and r.ok:
|
||||||
for param in params:
|
for param in params:
|
||||||
if not 'name={param!r}'.format(param=param) in r.text:
|
if not 'name="{param}"'.format(param=param) in r.text:
|
||||||
rem_params.append(param)
|
rem_params.append(param)
|
||||||
for param in rem_params:
|
for param in rem_params:
|
||||||
params.pop(param)
|
params.pop(param)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue