Reenabled bracket normalization for titles, GH-121

This commit is contained in:
krateng 2022-04-19 22:13:51 +02:00
parent 17be00f794
commit 43ec4c2c9e

View File

@ -139,8 +139,10 @@ class CleanerAgent:
if t.strip().lower() in self.rules_replacetitle:
return self.rules_replacetitle[t.strip().lower()]
#t = t.replace("[","(").replace("]",")")
t = t.replace("[","(").replace("]",")")
# we'll leave these matching all bracket types so future changes
# won't require readaption
t = re.sub(r" [\(\[]as made famous by .*?[\)\]]","",t)
t = re.sub(r" [\(\[]originally by .*?[\)\]]","",t)
t = re.sub(r" [\(\[].*?Remaster.*?[\)\]]","",t)