From 5927ce9121dec8d482ef6ad037f50b9804695e54 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 5 May 2014 19:38:21 +0930 Subject: [PATCH] set status if extract = 0. fixes #314 --- TorrentToMedia.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index d572820f..d5f0adf2 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -181,6 +181,9 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID, if numVideos > 0: logger.info("Found %s media files in %s" % (numVideos, outputDestination)) status = 0 + elif extract != 1: + logger.info("Found no media files in %s. Sending to %s to process" % (outputDestination, sectionName)) + status = 0 else: logger.warning("Found no media files in %s" % outputDestination)