From a62e7bf82d10746ce3d59337258de8e4536a960f Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Sun, 21 Apr 2013 11:22:25 +0930 Subject: [PATCH] create list of video extensions --- DeleteSamples.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DeleteSamples.py b/DeleteSamples.py index e562556b..1c62c46c 100644 --- a/DeleteSamples.py +++ b/DeleteSamples.py @@ -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) \ No newline at end of file + sys.exit(0)