1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[youtube] Allow empty attribute values in description regex

This commit is contained in:
Sergey M․ 2016-05-06 22:11:18 +06:00
parent abc97b5eda
commit 25cb7a0eeb
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -1326,9 +1326,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
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>