]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Allow empty attribute values in description regex
authorSergey M․ <dstftw@gmail.com>
Fri, 6 May 2016 16:11:18 +0000 (22:11 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 6 May 2016 16:11:18 +0000 (22:11 +0600)
youtube_dl/extractor/youtube.py

index b7c3cb63fc44d73d429f70392e0bd2cdf5bbd66f..f3f102c30f5a0a5852a292529ea52b70051260f7 100644 (file)
@@ -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>