From 9fc4f7208d28080bbcc9aa1ad50646390b58448e Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Tue, 23 Apr 2013 06:58:37 +0930 Subject: [PATCH] Delete sample file Seriously, that was just embarrassing. --- DeleteSamples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeleteSamples.py b/DeleteSamples.py index 5cb06516..b2e54704 100755 --- a/DeleteSamples.py +++ b/DeleteSamples.py @@ -111,7 +111,7 @@ if os.environ.has_key('NZBOP_SCRIPTDIR') and not os.environ['NZBOP_VERSION'][0:5 if is_sample(filePath, os.environ['NZBPP_NZBNAME'], os.environ['NZBPO_MAXSAMPLESIZE']): # Ignore samples print "Deleting sample file: ", filePath try: - os.unlink() + os.unlink(filePath) except: print "Error: unable to delete file", filePath sys.exit(POSTPROCESS_ERROR)