Remove Des from title

This commit is contained in:
Yohann D'ANELLO 2020-10-03 11:03:22 +02:00
parent 9c53d89ad3
commit e09b503ee1
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ def generate_side_identifier(title, authors, subtitle=None):
title_normalized = title.upper() title_normalized = title.upper()
title_normalized = title_normalized.replace('', '\'') title_normalized = title_normalized.replace('', '\'')
title_normalized = re.sub(r'^DE ', '', title_normalized) title_normalized = re.sub(r'^DE ', '', title_normalized)
title_normalized = re.sub(r'^DES ', '', title_normalized)
title_normalized = re.sub(r'^LE ', '', title_normalized) title_normalized = re.sub(r'^LE ', '', title_normalized)
title_normalized = re.sub(r'^LA ', '', title_normalized) title_normalized = re.sub(r'^LA ', '', title_normalized)
title_normalized = re.sub(r'^LES ', '', title_normalized) title_normalized = re.sub(r'^LES ', '', title_normalized)