Fixed some false positive for HI detection

This commit is contained in:
Louis Vézina 2020-10-15 06:25:00 -04:00
parent 6d5c5a88bd
commit 75e603b508
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ from charamel import Detector
gc.enable()
global hi_regex
hi_regex = re.compile(r'[*¶♫♪].{3,}[*¶♫♪]|[\[\(\{].{3,}[\]\)\}]')
hi_regex = re.compile(r'[*¶♫♪].{3,}[*¶♫♪]|[\[\(\{].{3,}[\]\)\}](?<!{\\an\d})')
def store_subtitles(original_path, reversed_path):