allow ): and ]: in title

This commit is contained in:
j 2023-10-11 11:29:09 +01:00
parent 76bb5b53d3
commit 2f9e27b2f5

View file

@ -206,7 +206,7 @@ def parse_path(path, directory_key='director'):
string = re.sub(re.compile('(?<=\w)_(?=\w)', re.U), '/', string)
string = re.sub(' _ ', ' / ', string)
# 'foo_ ' is ':'
string = re.sub(re.compile('(?<=\w)_ ', re.U), ': ', string)
string = re.sub(re.compile('(?<=[\w\)\]])_ ', re.U), ': ', string)
string = unicodedata.normalize('NFD', string)
return string