[youtube] Fix URL expansion in video description
authorSergey M․ <dstftw@gmail.com>
Mon, 18 Jan 2016 17:17:45 +0000 (23:17 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 18 Jan 2016 17:17:45 +0000 (23:17 +0600)
Fixes test_Youtube_18

youtube_dl/extractor/youtube.py

index e4f227f199d10ae3923acbc97d09263a9531470a..50c1363cd5aa4f0b624240d4278ec77872b3468e 100644 (file)
@@ -1237,7 +1237,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                     (?:[a-zA-Z-]+="[^"]+"\s+)*?
                     (?:title|href)="([^"]+)"\s+
                     (?:[a-zA-Z-]+="[^"]+"\s+)*?
-                    class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)".*?>
+                    class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*>
                 [^<]+\.{3}\s*
                 </a>
             ''', r'\1', video_description)