mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
attempt autofork even if no username set. Fixes #1191
This commit is contained in:
parent
ee738764c1
commit
7dff735fa8
1 changed files with 4 additions and 4 deletions
|
@ -64,12 +64,12 @@ class autoProcessTV(object):
|
||||||
password = cfg.get("password", "")
|
password = cfg.get("password", "")
|
||||||
apikey = cfg.get("apikey", "")
|
apikey = cfg.get("apikey", "")
|
||||||
|
|
||||||
if not username and not apikey:
|
if server_responding("{0}{1}:{2}{3}".format(protocol, host, port, web_root)):
|
||||||
logger.info('No SickBeard username or Sonarr apikey entered. Performing transcoder functions only')
|
|
||||||
fork, fork_params = "None", {}
|
|
||||||
elif server_responding("{0}{1}:{2}{3}".format(protocol, host, port, web_root)):
|
|
||||||
# auto-detect correct fork
|
# auto-detect correct fork
|
||||||
fork, fork_params = autoFork(section, inputCategory)
|
fork, fork_params = autoFork(section, inputCategory)
|
||||||
|
elif not username and not apikey:
|
||||||
|
logger.info('No SickBeard username or Sonarr apikey entered. Performing transcoder functions only')
|
||||||
|
fork, fork_params = "None", {}
|
||||||
else:
|
else:
|
||||||
logger.error("Server did not respond. Exiting", section)
|
logger.error("Server did not respond. Exiting", section)
|
||||||
return [1, "{0}: Failed to post-process - {1} did not respond.".format(section, section)]
|
return [1, "{0}: Failed to post-process - {1} did not respond.".format(section, section)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue