brianspilner01 / media-server-scripts

82 stars 18 forks source link

Script clipping the letter R from lines #15

Closed ambilzi closed 3 years ago

ambilzi commented 3 years ago

I have installed the sub-clean.sh script to run as a post-processing script in Bazarr according to the instructions in the script comments.

It's running on a macOS System running 10.13.

I've noticed that on many subtitles, the letter "r" is stripped from the end of some words.

I have not been able to identify any consistency as to why. It happens in a small percentage of cases that fit this criteria (5% maybe?)

A simple example:

3 00:01:19,162 --> 00:01:21,538 deer

the word "deer" is truncated to "dee"

brianspilner01 commented 3 years ago

I've made a change that will hopefully fix this problem, seems to be an issue with older versions of sed from what I can see. Please let me know if it works for you!

ambilzi commented 3 years ago

I tested it again in the example I provided with the new script. Appears to be resolved. I'll certainly let you know if I see it come up again. Thanks for the quick fix!