[youtube:search_url] Fix extraction (Closes #6578)
authorSergey M․ <dstftw@gmail.com>
Sun, 16 Aug 2015 17:33:17 +0000 (23:33 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 16 Aug 2015 17:33:17 +0000 (23:33 +0600)
youtube_dl/extractor/youtube.py

index 887c46d95dcef1febe45166e9dbd2a4c49083e73..4d1ca92986b680aed75a6f34b8052fa5d5903656 100644 (file)
@@ -1762,7 +1762,7 @@ class YoutubeSearchURLIE(InfoExtractor):
             r'(?s)<ol[^>]+class="item-section"(.*?)</ol>', webpage, 'result HTML')
 
         part_codes = re.findall(
-            r'(?s)<h3 class="yt-lockup-title">(.*?)</h3>', result_code)
+            r'(?s)<h3[^>]+class="[^"]*yt-lockup-title[^"]*"[^>]*>(.*?)</h3>', result_code)
         entries = []
         for part_code in part_codes:
             part_title = self._html_search_regex(