mark as bad if no media files found. Fixes #748

also improved the flow somewhat.
This commit is contained in:
clinton-hall 2015-04-26 21:16:06 +09:30
parent c80a678ded
commit c5da33a17d
2 changed files with 27 additions and 38 deletions

View file

@ -195,6 +195,8 @@ class autoProcessMovie:
else:
logger.warning("No media files found in directory %s. Processing this as a failed download" % (dirName), section)
status = 1
if os.environ.has_key('NZBOP_VERSION') and os.environ['NZBOP_VERSION'][0:5] >= '14.0':
print('[NZB] MARK=BAD')
if status == 0:
if core.TRANSCODE == 1: