mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
fix fork check #367
This commit is contained in:
parent
37a8b5aca1
commit
7f96df5e60
1 changed files with 5 additions and 6 deletions
|
@ -53,13 +53,12 @@ def autoFork(section, inputCategory):
|
||||||
try:
|
try:
|
||||||
r = requests.get(url, headers=headers, stream=True, verify=False)
|
r = requests.get(url, headers=headers, stream=True, verify=False)
|
||||||
except requests.ConnectionError:
|
except requests.ConnectionError:
|
||||||
logger.info("Could not connect to %s:%s to verify fork!" % (section, inputCategory))
|
logger.warning("Could not connect to %s:%s to verify fork!" % (section, inputCategory))
|
||||||
break
|
|
||||||
|
|
||||||
if r.ok:
|
if not r.ok:
|
||||||
fork = ['default', {}]
|
logger.warning("Connection to %s:%s failed! Check your configuration" % (section, inputCategory))
|
||||||
else:
|
|
||||||
logger.info("Connection to %s:%s failed! Check your configuration" % (section, inputCategory))
|
fork = ['default', {}]
|
||||||
|
|
||||||
elif fork == "auto":
|
elif fork == "auto":
|
||||||
logger.info("Attempting to auto-detect %s fork" % inputCategory)
|
logger.info("Attempting to auto-detect %s fork" % inputCategory)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue