diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-05-06 22:11:18 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-05-06 22:11:18 +0600 |
commit | 25cb7a0eebae0093a81fa1c930480fafa13feb25 (patch) | |
tree | 776d2750be7feb0782b37feb35e33504482e7272 | |
parent | abc97b5eda4ed4b36cec29e9966eb1bb7bcd97ce (diff) |
[youtube] Allow empty attribute values in description regex
-rw-r--r-- | youtube_dl/extractor/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index b7c3cb63f..f3f102c30 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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> |