Fixed some false positive for HI detection

pull/1155/head
Louis Vézina 4 years ago
parent 6d5c5a88bd
commit 75e603b508

@ -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):

Loading…
Cancel
Save