[youtube:search_url] Fix extraction (Closes #6578)

pull/8/head
Sergey M․ 9 years ago
parent 8626b23e4e
commit f74a7348f6

@ -1762,7 +1762,7 @@ class YoutubeSearchURLIE(InfoExtractor):
r'(?s)<ol[^>]+class="item-section"(.*?)</ol>', webpage, 'result HTML') r'(?s)<ol[^>]+class="item-section"(.*?)</ol>', webpage, 'result HTML')
part_codes = re.findall( 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 = [] entries = []
for part_code in part_codes: for part_code in part_codes:
part_title = self._html_search_regex( part_title = self._html_search_regex(

Loading…
Cancel
Save