mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-21 15:53:01 +08:00
[youtube] Allow empty attribute values in description regex
This commit is contained in:
parent
abc97b5eda
commit
25cb7a0eeb
@ -1326,9 +1326,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
if video_description:
|
||||
video_description = re.sub(r'''(?x)
|
||||
<a\s+
|
||||
(?:[a-zA-Z-]+="[^"]+"\s+)*?
|
||||
(?:[a-zA-Z-]+="[^"]*"\s+)*?
|
||||
(?:title|href)="([^"]+)"\s+
|
||||
(?:[a-zA-Z-]+="[^"]+"\s+)*?
|
||||
(?:[a-zA-Z-]+="[^"]*"\s+)*?
|
||||
class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*>
|
||||
[^<]+\.{3}\s*
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user