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:
|
||||
r = requests.get(url, headers=headers, stream=True, verify=False)
|
||||
except requests.ConnectionError:
|
||||
logger.info("Could not connect to %s:%s to verify fork!" % (section, inputCategory))
|
||||
break
|
||||
logger.warning("Could not connect to %s:%s to verify fork!" % (section, inputCategory))
|
||||
|
||||
if not r.ok:
|
||||
logger.warning("Connection to %s:%s failed! Check your configuration" % (section, inputCategory))
|
||||
|
||||
if r.ok:
|
||||
fork = ['default', {}]
|
||||
else:
|
||||
logger.info("Connection to %s:%s failed! Check your configuration" % (section, inputCategory))
|
||||
|
||||
elif fork == "auto":
|
||||
logger.info("Attempting to auto-detect %s fork" % inputCategory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue