title refinement

This commit is contained in:
j 2011-10-11 21:05:11 +02:00
commit 2692300f3b
5 changed files with 19 additions and 10 deletions

View file

@ -201,14 +201,14 @@ def sort_string(string):
def sort_title(title):
#title
title = re.sub(u'[\'!¿¡,\.;\-"\:\*\[\]]', '', title)
#title = title.replace(u'Æ', 'Ae')
if isinstance(title, str):
title = unicode(title)
title = sort_string(title)
#title
title = re.sub(u'[\'!¿¡,\.;\-"\:\*\[\]]', '', title)
return title.strip()
def get_positions(ids, pos):