Added YTS.MX

This commit is contained in:
Roger Gonzalez 2024-08-31 08:18:45 -03:00
parent c15813fb35
commit d27b3d3436
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ AD_PATTERNS = [
re.compile(r"\bNest0r\b", re.IGNORECASE), re.compile(r"\bNest0r\b", re.IGNORECASE),
re.compile(r"\bikerslot\b", re.IGNORECASE), re.compile(r"\bikerslot\b", re.IGNORECASE),
re.compile(r"\bmenoyos\b", re.IGNORECASE), re.compile(r"\bmenoyos\b", re.IGNORECASE),
re.compile(r"\bYTS.MX\b", re.IGNORECASE),
] ]

View File

@ -47,6 +47,7 @@ def create_sample_srt_file(tmpdir, content):
("This is a normal line", False), ("This is a normal line", False),
("This line contains OpenSubtitles", True), ("This line contains OpenSubtitles", True),
("Subtitles by XYZ", True), ("Subtitles by XYZ", True),
("YTS.MX presents", True),
], ],
) )
def test_contains_ad(subtitle_line, expected_result): def test_contains_ad(subtitle_line, expected_result):