forked from 0x2620/pandora
unicode
This commit is contained in:
parent
31afb65c74
commit
0798a2a34d
1 changed files with 2 additions and 0 deletions
|
@ -167,6 +167,8 @@ def sort_title(title):
|
||||||
title = re.sub(u'[\'!¿¡,\.;\-"\:\*\[\]]', '', title)
|
title = re.sub(u'[\'!¿¡,\.;\-"\:\*\[\]]', '', title)
|
||||||
|
|
||||||
#title = title.replace(u'Æ', 'Ae')
|
#title = title.replace(u'Æ', 'Ae')
|
||||||
|
if isinstance(title, str):
|
||||||
|
title = unicode(title)
|
||||||
title = unicodedata.normalize('NFKD',title)
|
title = unicodedata.normalize('NFKD',title)
|
||||||
|
|
||||||
#pad numbered titles
|
#pad numbered titles
|
||||||
|
|
Loading…
Reference in a new issue