FIX: still some more unicode fixes...

This commit is contained in:
evilhero 2013-03-07 20:49:47 -05:00
parent 4c7b4f6b18
commit 9a78f59624
2 changed files with 5 additions and 2 deletions

View File

@ -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']

View File

@ -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('.')