From d167f9795a64926827576e2a532c61084b75c107 Mon Sep 17 00:00:00 2001 From: evilhero Date: Fri, 12 Jun 2015 02:39:27 -0400 Subject: [PATCH] FIX: Fail to scan in issues if no year present within filename (Recheck Files option) --- mylar/filechecker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mylar/filechecker.py b/mylar/filechecker.py index 9f15ce67..cab9bf44 100755 --- a/mylar/filechecker.py +++ b/mylar/filechecker.py @@ -228,11 +228,11 @@ def listFiles(dir, watchcomic, Publisher, AlternateSearch=None, manual=None, sar #if the series has digits this f's it up. if numberinseries == 'True' or decimalinseries == 'True': #we need to remove the series from the subname and then search the remainder. - watchname = re.sub('[\:\;\!\'\/\?\+\=\_\%\.\-]', '', watchcomic) #remove spec chars for watchcomic match. + watchname = re.sub('[\:\;\!\'\/\?\+\=\_\%\-]', '', watchcomic) #remove spec chars for watchcomic match. logger.fdebug('[FILECHECKER] watch-cleaned: ' + watchname) subthis = re.sub('.cbr', '', subname) subthis = re.sub('.cbz', '', subthis) - subthis = re.sub('[\:\;\!\'\/\?\+\=\_\%\.\-]', '', subthis) + subthis = re.sub('[\:\;\!\'\/\?\+\=\_\%\-]', '', subthis) subthis = re.sub('\s+', ' ', subthis) logger.fdebug('[FILECHECKER] sub-cleaned: ' + subthis) #we need to make sure the file is part of the correct series or else will match falsely