From b002d4127d9e5014f1f3dde566fb086432381d57 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Wed, 6 Feb 2013 01:32:25 -0800 Subject: [PATCH] improve matching without .nzb closes #36 --- autoProcessMovie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoProcessMovie.py b/autoProcessMovie.py index a054f530..e8862502 100644 --- a/autoProcessMovie.py +++ b/autoProcessMovie.py @@ -100,8 +100,8 @@ def process(dirName, nzbName=None, status=0): else: print "download of", nzbName1, "has failed." print "trying to re-cue the next highest ranked release" - a=nzbName1.find('.cp')+4 - b=nzbName1.find('.nzb')-1 + a=nzbName1.find('.cp(')+4 + b=nzbName1[a:].find(')')+a imdbid=nzbName1[a:b] #print imdbid