1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-24 00:32:47 +00:00

FIX:(#287) Unicode error using Experimental search

This commit is contained in:
evilhero 2013-03-29 00:14:39 -04:00
parent 75f2a99b3f
commit ed6f6e93a9

View file

@ -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)
})