mirror of
https://github.com/evilhero/mylar
synced 2024-12-25 01:01:47 +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("\"")
|
splitTitle = title.split("\"")
|
||||||
|
|
||||||
for subs in splitTitle:
|
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)
|
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)
|
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)
|
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))
|
#print("regex: " + str(regEx))
|
||||||
if regEx or regExOne or regExTwo:
|
if regEx or regExOne or regExTwo:
|
||||||
logger.fdebug("name: " + str(title))
|
logger.fdebug("name: " + title)
|
||||||
logger.fdebug("sub: " + str(subs))
|
logger.fdebug("sub: " + subs)
|
||||||
logger.fdebug("-----")
|
logger.fdebug("-----")
|
||||||
logger.fdebug("url: " + str(link))
|
logger.fdebug("url: " + str(link))
|
||||||
logger.fdebug("-----")
|
logger.fdebug("-----")
|
||||||
#regList.append(title)
|
#regList.append(title)
|
||||||
#regList.append(subs)
|
#regList.append(subs)
|
||||||
entries.append({
|
entries.append({
|
||||||
'title': str(subs),
|
'title': subs,
|
||||||
'link': str(link)
|
'link': str(link)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue