mirror of
https://github.com/evilhero/mylar
synced 2025-03-12 23:13:09 +00:00
FIX: Fix for searching for series with a '+' in them not returning any results
This commit is contained in:
parent
0442d808c9
commit
b47b5351d4
1 changed files with 10 additions and 0 deletions
10
mylar/mb.py
10
mylar/mb.py
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue