From d27b3d34369e925bd6b199ae3cb11a2fb67abb9f Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 31 Aug 2024 08:18:45 -0300 Subject: Added YTS.MX --- src/subscleaner/subscleaner.py | 1 + tests/test_subscleaner.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/subscleaner/subscleaner.py b/src/subscleaner/subscleaner.py index bfd1612..a6fc36b 100755 --- a/src/subscleaner/subscleaner.py +++ b/src/subscleaner/subscleaner.py @@ -93,6 +93,7 @@ AD_PATTERNS = [ re.compile(r"\bNest0r\b", re.IGNORECASE), re.compile(r"\bikerslot\b", re.IGNORECASE), re.compile(r"\bmenoyos\b", re.IGNORECASE), + re.compile(r"\bYTS.MX\b", re.IGNORECASE), ] diff --git a/tests/test_subscleaner.py b/tests/test_subscleaner.py index 54cb521..52eec01 100644 --- a/tests/test_subscleaner.py +++ b/tests/test_subscleaner.py @@ -47,6 +47,7 @@ def create_sample_srt_file(tmpdir, content): ("This is a normal line", False), ("This line contains OpenSubtitles", True), ("Subtitles by XYZ", True), + ("YTS.MX presents", True), ], ) def test_contains_ad(subtitle_line, expected_result): -- cgit v1.2.3