summaryrefslogtreecommitdiff
path: root/src/subscleaner
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2024-03-12 23:14:50 +0000
committerRoger Gonzalez <roger@rogs.me>2024-03-12 23:14:50 +0000
commitff70cdbc5d8d02bcfce53d5a42d0b8d8070f4e3e (patch)
treece7057e10307d663ea313e881254de318b00dd9f /src/subscleaner
parentddef96fdb5661c1f383106f06b56ada82665956e (diff)
parenta44f8f2950334ea7951e22e5d9202e6c3da01ffa (diff)
Merge branch 'additions' into 'master'
add some common ads I found See merge request rogs/subscleaner!1
Diffstat (limited to 'src/subscleaner')
-rwxr-xr-xsrc/subscleaner/subscleaner.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/subscleaner/subscleaner.py b/src/subscleaner/subscleaner.py
index f79e10d..360bad2 100755
--- a/src/subscleaner/subscleaner.py
+++ b/src/subscleaner/subscleaner.py
@@ -63,8 +63,12 @@ AD_PATTERNS = [
re.compile(r"\bUna\s+traducci[óo]n\s+de\b", re.IGNORECASE),
re.compile(r"\btvsubtitles\b", re.IGNORECASE),
re.compile(r"\bTacho8\b", re.IGNORECASE),
- re.compile(r"\bwww\.\S+\.com\b", re.IGNORECASE),
- re.compile(r"\bwww\.\S+\.es\b", re.IGNORECASE),
+ re.compile(r"\b(www\.)?\S+\.(com|es|link|app|ly)\b", re.IGNORECASE),
+ re.compile(r"to remove all ads from", re.IGNORECASE),
+ re.compile(r"\bfrom 3.49 USD/month ---->\b", re.IGNORECASE),
+ re.compile(r"implement REST API from", re.IGNORECASE),
+ re.compile(r"Signup Here ->", re.IGNORECASE),
+ re.compile(r"Help other users to choose the best subtitles", re.IGNORECASE),
]