mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 13:52:36 +00:00
[youtube] Allow empty attribute values in description regex
This commit is contained in:
parent
abc97b5eda
commit
25cb7a0eeb
|
@ -1326,9 +1326,9 @@ def add_dash_mpd(video_info):
|
||||||
if video_description:
|
if video_description:
|
||||||
video_description = re.sub(r'''(?x)
|
video_description = re.sub(r'''(?x)
|
||||||
<a\s+
|
<a\s+
|
||||||
(?:[a-zA-Z-]+="[^"]+"\s+)*?
|
(?:[a-zA-Z-]+="[^"]*"\s+)*?
|
||||||
(?:title|href)="([^"]+)"\s+
|
(?:title|href)="([^"]+)"\s+
|
||||||
(?:[a-zA-Z-]+="[^"]+"\s+)*?
|
(?:[a-zA-Z-]+="[^"]*"\s+)*?
|
||||||
class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*>
|
class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*>
|
||||||
[^<]+\.{3}\s*
|
[^<]+\.{3}\s*
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue