FIX: Fix for searching for series with a '+' in them not returning any results

This commit is contained in:
evilhero 2018-03-09 11:47:55 -05:00
parent 0442d808c9
commit b47b5351d4
1 changed files with 10 additions and 0 deletions

View File

@ -98,9 +98,19 @@ def findComic(name, mode, issue, limityear=None, type=None):
else:
name = name.replace(x, ' ', cnt)
originalname = name
if '+' in name:
name = re.sub('\+', 'PLUS', name)
pattern = re.compile(ur'\w+', re.UNICODE)
name = pattern.findall(name)
if '+' in originalname:
y = []
for x in name:
y.append(re.sub("PLUS", "%2B", x))
name = y
if limityear is None: limityear = 'None'
comicquery = name