fix no api bypass to apply to Sonarr only.

This commit is contained in:
clinton-hall 2017-04-26 16:27:49 +09:30
parent cd2e466b30
commit bd4a448d26

View file

@ -226,7 +226,7 @@ class autoProcessTV(object):
[fork_params.pop(k) for k, v in fork_params.items() if v is None] [fork_params.pop(k) for k, v in fork_params.items() if v is None]
if status == 0: if status == 0:
if not apikey: if section == "NzbDrone" and not apikey:
logger.info('No Sonarr apikey entered. Processing completed.') logger.info('No Sonarr apikey entered. Processing completed.')
return [0, "{0}: Successfully post-processed {1}".format(section, inputName)] return [0, "{0}: Successfully post-processed {1}".format(section, inputName)]
logger.postprocess("SUCCESS: The download succeeded, sending a post-process request", section) logger.postprocess("SUCCESS: The download succeeded, sending a post-process request", section)