fix deletesample

This commit is contained in:
clinton-hall 2013-04-21 16:33:49 +09:30
parent 7ce9a9cc96
commit a2e23e6a9e

View file

@ -108,7 +108,7 @@ if os.environ.has_key('NZBOP_SCRIPTDIR') and not os.environ['NZBOP_VERSION'][0:5
mediaContainer = os.environ['NZBPO_MEDIAEXTENSIONS'].split(',')
if fileExtension in mediaContainer: # If the file is a video file
if is_sample(filePath, os.environ['NZBPP_NZBNAME'], os.environ['NZBPO_MAXSAMPLESIZE'): # Ignore samples
if is_sample(filePath, os.environ['NZBPP_NZBNAME'], os.environ['NZBPO_MAXSAMPLESIZE']): # Ignore samples
print "Deleting sample file: ", filePath
try:
os.unlink()