create list of video extensions

This commit is contained in:
Clinton Hall 2013-04-21 11:22:25 +09:30
parent 397bc0740d
commit a62e7bf82d

View file

@ -105,7 +105,7 @@ if os.environ.has_key('NZBOP_SCRIPTDIR') and not os.environ['NZBOP_VERSION'][0:5
filePath = os.path.join(dirpath, file)
fileName, fileExtension = os.path.splitext(file)
mediaContainer = os.environ['NZBPO_MEDIAEXTENSIONS']
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
@ -119,4 +119,4 @@ if os.environ.has_key('NZBOP_SCRIPTDIR') and not os.environ['NZBOP_VERSION'][0:5
else:
print "This script can only be called from NZBGet (11.0 or later)."
sys.exit(0)
sys.exit(0)