diff --git a/test/test_parsing.py b/test/test_parsing.py index a7e7ec7d4..0e006298f 100644 --- a/test/test_parsing.py +++ b/test/test_parsing.py @@ -345,7 +345,7 @@ class TestParsing(unittest.TestCase): ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ here is and end ----------------^^^^^^^^^^^----------------^^^^^^^^^^^^^^^^^--------- - + --------^^^^^^^^^^^^^-----------------------------^^^^^^^^^^--------- ''' diff --git a/yt_dlp/parsing.py b/yt_dlp/parsing.py index 256ba8e6c..f4aaf1ac4 100644 --- a/yt_dlp/parsing.py +++ b/yt_dlp/parsing.py @@ -20,7 +20,7 @@ class HTMLIgnoreRanges: if offset in ranges: ... """ - REGEX = re.compile(r'|]*>') + REGEX = re.compile(r'|]*>', flags=re.IGNORECASE) def __init__(self, html): self.html = html