mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 16:51:42 +00:00
FIX:(#287) Unicode error using Experimental search
This commit is contained in:
parent
75f2a99b3f
commit
ed6f6e93a9
1 changed files with 4 additions and 4 deletions
|
@ -67,22 +67,22 @@ def Startit(searchName, searchIssue, searchYear):
|
|||
splitTitle = title.split("\"")
|
||||
|
||||
for subs in splitTitle:
|
||||
logger.fdebug("looking at: " + str(subs))
|
||||
logger.fdebug("looking at: " + subs)
|
||||
regEx = re.findall("\\b%s\\b\\s*\\b%s\\b\\s*[(]\\b%s\\b[)]" %(searchName, searchIssue, searchYear), subs, flags=re.IGNORECASE)
|
||||
regExOne = re.findall("\\b%s\\b\\s*\\b%s\\b\\s*[(]\\b%s\\b[)]" %(searchName, searchIsOne, searchYear), subs, flags=re.IGNORECASE)
|
||||
regExTwo = re.findall("\\b%s\\b\\s*\\b%s\\b\\s*[(]\\b%s\\b[)]" %(searchName, searchIsTwo, searchYear), subs, flags=re.IGNORECASE)
|
||||
|
||||
#print("regex: " + str(regEx))
|
||||
if regEx or regExOne or regExTwo:
|
||||
logger.fdebug("name: " + str(title))
|
||||
logger.fdebug("sub: " + str(subs))
|
||||
logger.fdebug("name: " + title)
|
||||
logger.fdebug("sub: " + subs)
|
||||
logger.fdebug("-----")
|
||||
logger.fdebug("url: " + str(link))
|
||||
logger.fdebug("-----")
|
||||
#regList.append(title)
|
||||
#regList.append(subs)
|
||||
entries.append({
|
||||
'title': str(subs),
|
||||
'title': subs,
|
||||
'link': str(link)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue