Browse Source

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

master
Sergey M․ 9 years ago
parent
commit
98998cded6
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/youtube.py

2
youtube_dl/extractor/youtube.py

@ -1532,7 +1532,7 @@ class YoutubeSearchURLIE(InfoExtractor):
webpage = self._download_webpage(url, query)
result_code = self._search_regex(
r'(?s)<ol class="item-section"(.*?)</ol>', webpage, 'result HTML')
r'(?s)<ol[^>]+class="item-section"(.*?)</ol>', webpage, 'result HTML')
part_codes = re.findall(
r'(?s)<h3 class="yt-lockup-title">(.*?)</h3>', result_code)

Loading…
Cancel
Save