brianspilner01 / media-server-scripts

84 stars 18 forks source link

Not removing WWW.ADMITME.APP #19

Open Hukuma1 opened 2 years ago

Hukuma1 commented 2 years ago

Heya! Not sure if it's the fact the script isn't running, or if the script needs to be updated with further cleaning. Quite a few of my srt files have the following:

First

1
00:00:06,000 --> 00:00:12,074
Enjoy Movies, TV Series and Live Sports
Signup Here -> WWW.ADMITME.APP

Last

891
01:54:09,305 --> 01:55:09,496
Enjoy Movies, TV Series and Live Sports
Signup Here -> WWW.ADMITME.APP

Is it possible to add a section to your script for custom line removal so we can simply add these edge cases in? e.g. match exactly the line text this way we don't by accident remove real subtitles

Scaredycrow commented 1 year ago

@Hukuma1 you can manually modify the script to include this by adding the release group to the end of the relevant regex line like this:

REGEX_TO_REMOVE2='opensubtitles|sub(scene|rip)|podnapisi|addic7ed|titlovi|bozxphd|sazu489|psagmeno|normita|anoxmous|isubdb|americascardroom|admitme'