Added YTS.MX
This commit is contained in:
parent
c15813fb35
commit
d27b3d3436
@ -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),
|
||||
]
|
||||
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user