projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14137b5
)
[youtube:search_url] Fix extraction (Closes #5155)
author
Sergey M․
<dstftw@gmail.com>
Sat, 7 Mar 2015 12:59:06 +0000
(18:59 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 7 Mar 2015 12:59:06 +0000
(18:59 +0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 3690f8021267b30171be4f2e7a019133aaeaaca9..27c8c4453773974f52d02ecba58f092221c6e118 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
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)