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

FIX: (#855) When using Experimental Search, unable to find issues when the series contained an '&' due to improper url-encoding

This commit is contained in:
evilhero 2014-10-13 15:46:38 -04:00
parent d03680f29e
commit dadc4baec0

View file

@ -8,7 +8,7 @@ import re
import logger
import mylar
import unicodedata
import urllib
def Startit(searchName, searchIssue, searchYear, ComicVersion, IssDateFix):
#searchName = "Uncanny Avengers"
@ -24,7 +24,9 @@ def Startit(searchName, searchIssue, searchYear, ComicVersion, IssDateFix):
logger.fdebug("name:" + str(searchName))
logger.fdebug("issue:" + str(searchIssue))
logger.fdebug("year:" + str(searchYear))
splitSearch = searchName.split(" ")
encodeSearch = urllib.quote_plus(searchName)
splitSearch = encodeSearch.split(" ")
joinSearch = "+".join(splitSearch)+"+"+searchIssue
searchIsOne = "0"+searchIssue
searchIsTwo = "00"+searchIssue