mirror of https://github.com/evilhero/mylar
removed unicoded encoding from previewRename
This commit is contained in:
parent
94794cf626
commit
143152642e
|
@ -493,7 +493,7 @@ class FileHandlers(object):
|
||||||
|
|
||||||
logger.fdebug('Annual detected within series title of ' + series + '. Not auto-correcting issue #')
|
logger.fdebug('Annual detected within series title of ' + series + '. Not auto-correcting issue #')
|
||||||
|
|
||||||
seriesfilename = seriesfilename.encode('ascii', 'ignore').strip()
|
seriesfilename = seriesfilename #.encode('ascii', 'ignore').strip()
|
||||||
filebad = [':', ',', '/', '?', '!', '\'', '\"', '\*'] #in u_comicname or '/' in u_comicname or ',' in u_comicname or '?' in u_comicname:
|
filebad = [':', ',', '/', '?', '!', '\'', '\"', '\*'] #in u_comicname or '/' in u_comicname or ',' in u_comicname or '?' in u_comicname:
|
||||||
for dbd in filebad:
|
for dbd in filebad:
|
||||||
if dbd in seriesfilename:
|
if dbd in seriesfilename:
|
||||||
|
|
|
@ -2437,7 +2437,7 @@ class WebInterface(object):
|
||||||
if type(v) is list:
|
if type(v) is list:
|
||||||
comicid = str(' '.join(v))
|
comicid = str(' '.join(v))
|
||||||
elif type(v) is str:
|
elif type(v) is str:
|
||||||
comicid = re.sub('[\]\[\']', '', v.decode('utf-8').encode('ascii')).strip()
|
comicid = re.sub('[\]\[\']', '', v) #v.decode('utf-8').encode('ascii')).strip()
|
||||||
else:
|
else:
|
||||||
comicid = v
|
comicid = v
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue