mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
flags
This commit is contained in:
parent
5d36f8789b
commit
e4b970a830
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ def extract_script_tags(html: str) -> tuple[str, list[str]]:
|
||||||
script_indicies = []
|
script_indicies = []
|
||||||
inline_scripts = []
|
inline_scripts = []
|
||||||
|
|
||||||
for match_start in re.finditer(r'<script[^>]*>', html, re.DOTALL):
|
for match_start in re.finditer(r'<script[^>]*>', html, re.DOTALL | re.IGNORECASE):
|
||||||
end = html.find('</script>', match_start.end())
|
end = html.find('</script>', match_start.end())
|
||||||
if end > match_start.end():
|
if end > match_start.end():
|
||||||
script_indicies.append((match_start.start(), end + len('</script>')))
|
script_indicies.append((match_start.start(), end + len('</script>')))
|
||||||
|
|
Loading…
Reference in a new issue