mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-04 19:11:45 -05:00
improve regex
This commit is contained in:
parent
9a6f9843c0
commit
901e78af62
1 changed files with 1 additions and 3 deletions
|
@ -165,9 +165,7 @@ def _extract_embed_urls(cls, url, webpage):
|
|||
<a
|
||||
(?:\s(?:[^>"']|"[^"]*"|'[^']*')*)?
|
||||
(?<=\s)href\s*=\s*(?P<_q>['"])
|
||||
(?:
|
||||
(?!javascript:)(?P<href>/(?:{media_types})/\d+/?[\-a-zA-Z=?&#:;@]*)
|
||||
)
|
||||
(?!javascript:)(?P<href>/(?:{media_types})/\d+/?[\-\w=?&#:;@]*)
|
||||
(?P=_q)
|
||||
(?:\s(?:[^>"']|"[^"]*"|'[^']*')*)?
|
||||
>''', webpage):
|
||||
|
|
Loading…
Reference in a new issue