Closed DrKain closed 2 years ago
I decided to implement option A because B seemed bit too brute and might cause undesired effects, I've made a PR but there's a caveat - it doesn't work on provided subtitle file example but I think it's due to node #318 which is probably a rare case or a typo.
I haven't really worked on subtitle files in the past so I guess you'll have a better assessment than I, here are the relevant details:
01:23:57,320 --> 01:23:57,795
Subtitle
318
01:23:57,795 --> 01:23:58,270
Subtitles
U
319
01:23:58,270 --> 01:23:58,745
Subtitles By
Us
My code works either if node 318's text had " by" after "Subtitles" in top row or 2nd row("U") didn't exist which I believe is a subtitle uploader which made a mistake in their ad.
Node 318 was probably a mistake on my end, I had no examples on hand so I wrote that one out.
Linking to #20
This one is a bit trickier to handle and explain in text. Some subtitle uploaders have decided to add incredibly intrusive animated credits. They follow a similar format:
Right now subclean can handle nodes 319 to 324 but the preceding nodes remain. A special handler will need to be written that scans for these chained nodes. I'll probably end up doing it one of two ways.
Option A:
Option B: