attempt autofork even if no username set. Fixes #1191

This commit is contained in:
clinton-hall 2017-02-13 21:12:44 +10:30
commit 7dff735fa8

View file

@ -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)]