mirror of https://github.com/evilhero/mylar
FIX: still some more unicode fixes...
This commit is contained in:
parent
4c7b4f6b18
commit
9a78f59624
|
@ -279,7 +279,8 @@ class PostProcessor(object):
|
|||
publisher = comicnzb['ComicPublisher']
|
||||
self._log("Publisher: " + publisher, logger.DEBUG)
|
||||
logger.fdebug("Publisher: " + str(publisher))
|
||||
series = comicnzb['ComicName']
|
||||
#we need to un-unicode this to make sure we can write the filenames properly for spec.chars
|
||||
series = comicnzb['ComicName'].encode('ascii', 'ignore').strip()
|
||||
self._log("Series: " + series, logger.DEBUG)
|
||||
logger.fdebug("Series: " + str(series))
|
||||
seriesyear = comicnzb['ComicYear']
|
||||
|
|
|
@ -257,7 +257,9 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, nzbprov, nzbpr, Is
|
|||
comyear = str(ComicYear)
|
||||
|
||||
#print ("-------SEARCH FOR MISSING------------------")
|
||||
findcomic.append(str(ComicName))
|
||||
#ComicName is unicode - let's unicode and ascii it cause we'll be comparing filenames against it.
|
||||
u_ComicName = ComicName.encode('ascii', 'ignore').strip()
|
||||
findcomic.append(u_ComicName)
|
||||
# this should be called elsewhere..redudant code.
|
||||
if '.' in IssueNumber:
|
||||
isschk_find = IssueNumber.find('.')
|
||||
|
|
Loading…
Reference in New Issue