Skip to content

Commit bb486d2

Browse files
Updated Regex
1 parent 277ab58 commit bb486d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Option|Argument|Description
4545

4646
### Logs
4747
Script logs are integrated into the Bazarr log file. The text output of the script is designed to be compatible with the Bazarr log file format. This has been tested with Bazarr versions:
48-
- v0.8.2.4 - v1.5.1
48+
- v0.8.2.4 - v1.5.4
4949

5050
<details>
5151
<summary>Example Log Entries</summary>

cleansubs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function initialize_variables {
3535
# Initialize variables
3636

3737
export cleansubs_script=$(basename "$0")
38-
export cleansubs_ver="1.4"
38+
export cleansubs_ver="1.4.1"
3939
export cleansubs_pid=$$
4040
export cleansubs_log=/config/log/cleansubs.log
4141
export cleansubs_maxlogsize=512000
@@ -357,7 +357,7 @@ function clean_subtitle {
357357
sub(Timestamp, ""); sub(/\n\n/, "")
358358
}
359359
# Match on objectionable strings
360-
/^(subtitle[sd] )?(precisely )?((re)?sync(ed|hronized)?|encoded|improved|production|extracted|correct(ed|ions)|subtitle[sd]|downloaded|conformed)( (&|and) correct(ed|ions))?( by|from|:) |opensubtitles|subscene|subtext:|purevpn|english (subtitles|(- )?sdh)|trailers\.to|osdb\.link|thepiratebay\.|explosiveskull|gioni666|twitter\.com|flixify|YTS\.MX|saveanilluminati\.com|isubdb\.com|ADMITME\.APP|addic7ed\.com|sumnix|crazykyootie|mstoll|DivX|TLF subTeam|openloadflix\.com|blogspot\.com|visiontext|movieddl\.me|allsubs\.org|YT[SX](-MOVIE)?\.(COM|MX)|subtitrari\.pro|sab\.bz|cenflix\.co/ {
360+
/^(subtitle[sd] )?(precisely )?((re)?sync(ed|hronized)?|encoded|improved|production|extracted|correct(ed|ions)|subtitle[sd]|downloaded|conformed)( (&|and) correct(ed|ions))?( by|from|:) |Captioning made possible by|captioning performed by|performance of captions|opensubtitles|subscene|subtext:|purevpn|english (subtitles|(- )?sdh)|trailers\.to|osdb\.link|thepiratebay\.|explosiveskull|gioni666|twitter\.com|flixify|YTS\.MX|saveanilluminati\.com|isubdb\.com|ADMITME\.APP|addic7ed\.com|sumnix|crazykyootie|mstoll|DivX|TLF subTeam|openloadflix\.com|blogspot\.com|visiontext|movieddl\.me|allsubs\.org|YT[SX](-MOVIE)?\.(COM|MX)|subtitrari\.pro|sab\.bz|cenflix\.co/ {
361361
# This was needed in older versions of Bazarr that did not escape log entries.
362362
# gsub(/\n/, "<br/>")
363363
print "Info|Removing entry " (Entry - indexdelta) ": (" Timestamp ") " gensub(/\n/, "<br/>", "g", $0) | writelog

0 commit comments

Comments
 (0)