diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-07-04 19:21:19 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-07-04 19:21:19 +0700 |
commit | 6feb2d5e803dee49b2e4a8f3a7f33ca7f01f96b7 (patch) | |
tree | 614551be4eea7c3b3c89105f98d698d2a77e0d5b /youtube_dl/extractor/youtube.py | |
parent | 1e07fea200275a1230b80e405918cdeb29d1afd2 (diff) |
[youtube:search_url] Update regexes
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index bf0fbc924..f420b8148 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1698,14 +1698,14 @@ class YoutubeSearchURLIE(InfoExtractor): webpage = self._download_webpage(url, query) result_code = self._search_regex( - r'(?s)<ol id="search-results"(.*?)</ol>', webpage, u'result HTML') + r'(?s)<ol class="item-section"(.*?)</ol>', webpage, u'result HTML') part_codes = re.findall( r'(?s)<h3 class="yt-lockup-title">(.*?)</h3>', result_code) entries = [] for part_code in part_codes: part_title = self._html_search_regex( - r'(?s)title="([^"]+)"', part_code, 'item title', fatal=False) + [r'(?s)title="([^"]+)"', r'>([^<]+)</a>'], part_code, 'item title', fatal=False) part_url_snippet = self._html_search_regex( r'(?s)href="([^"]+)"', part_code, 'item URL') part_url = compat_urlparse.urljoin( |