m-lyon / filter-subs

Filter Subtitles to remove SDH entries
MIT License
38 stars 10 forks source link

Mismatched bracket not removed #28

Open allgreed opened 2 months ago

allgreed commented 2 months ago

Input:

1
00:27:13,799 --> 00:27:15,676
[announced
<i>Bet you can't resist this arrest.</i>

Output:

1
00:27:13,799 --> 00:27:15,676
[announced
<i>Bet you can't resist this arrest.</i>

Expected:

1
00:27:13,799 --> 00:27:15,676
<i>Bet you can't resist this arrest.</i>

Possibly related to #26

m-lyon commented 2 months ago

The trouble here is that there is no closing bracket, it's not trivial to fix this because of having to handle multiline subtitles that use braces/brackets in sound effects.