From 2f9e27b2f52c1aaf46ef2f331a7b9a5ed31738be Mon Sep 17 00:00:00 2001 From: j Date: Wed, 11 Oct 2023 11:29:09 +0100 Subject: [PATCH] allow ): and ]: in title --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index cbf591d..54ede0c 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -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