Merge pull request #958 from JoopNL/nightly

Report Downloader failures to SickRage
This commit is contained in:
Clinton Hall 2016-02-13 08:13:10 +10:30
commit ff61b5d573

View file

@ -176,9 +176,15 @@ class autoProcessTV:
logger.warning("No media files found in directory %s to manually process." % (dirName), section) logger.warning("No media files found in directory %s to manually process." % (dirName), section)
return [0, ""] # Success (as far as this script is concerned) return [0, ""] # Success (as far as this script is concerned)
elif nzbExtractionBy == "Destination": elif nzbExtractionBy == "Destination":
logger.info("Check for media files ignored because nzbExtractionBy is set to Destination. Setting status Success.") logger.info("Check for media files ignored because nzbExtractionBy is set to Destination.")
if failed == "0":
logger.info("Setting Status Success.")
status = 0 status = 0
failed = 0 failed = 0
else:
logger.info("Downloader reported an error during download or verification. Processing this as a failed download.")
status = 1
failed = 1
else: else:
logger.warning("No media files found in directory %s. Processing this as a failed download" % (dirName), section) logger.warning("No media files found in directory %s. Processing this as a failed download" % (dirName), section)
status = 1 status = 1