From fb0cb695bf6c9b26e5c26c3eb08c8a59be4d1604 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Fri, 27 Sep 2013 22:43:24 +0930 Subject: [PATCH] Always success for non video. Fixes #182 --- TorrentToMedia.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 10b665ae..97b9d267 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -174,11 +174,12 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): processCategories = Set([cpsCategory, sbCategory, hpCategory, mlCategory, gzCategory]) - if inputCategory and not (inputCategory in processCategories): # no extra processign to be done... yet. + if inputCategory and not (inputCategory in processCategories): # no extra processing to be done... yet. Logger.info("MAIN: No further processing to be done for category %s.", inputCategory) result = 1 elif status == 0 or (inputCategory in [hpCategory, mlCategory, gzCategory]): # if movies linked/extracted or for other categories. Logger.debug("MAIN: Calling autoProcess script for successful download.") + status = 0 # hp, my, gz don't support failed. else: Logger.error("MAIN: Something failed! Please check logs. Exiting") sys.exit(-1)