From 019290e55e66294f8b7da6a8e091e5970c08521f Mon Sep 17 00:00:00 2001 From: evilhero Date: Mon, 25 Apr 2016 14:38:42 -0400 Subject: [PATCH] FIX: Fix volume search comparison for 32p results (and some nzbs) --- mylar/search.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mylar/search.py b/mylar/search.py index 44156945..6c7fbe08 100755 --- a/mylar/search.py +++ b/mylar/search.py @@ -885,6 +885,7 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa #vol_label = ct #store the wording of how the Vol is defined so we can skip it later on. vol_nono.append(ctchk.index(ct)) volfound = True + origvol = None continue if len(tmpsplit[1:]) == 4 and tmpsplit[1:].isdigit(): #v2013 @@ -918,7 +919,10 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa continue if fndcomicversion: - cleantitle = re.sub(fndcomicversion, '', cleantitle).strip() + if origvol: + cleantitle = re.sub(origvol, '', cleantitle).strip() + else: + cleantitle = re.sub(fndcomicversion, '', cleantitle).strip() logger.fdebug('Newly finished reformed cleantitle (with NO volume label): ' + cleantitle) versionfound = "yes" break