projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c6afc
)
[wimp] Fix Youtube embeds extraction
author
Sergey M․
<dstftw@gmail.com>
Sun, 10 Jun 2018 19:40:17 +0000
(
02:40
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 10 Jun 2018 19:40:17 +0000
(
02:40
+0700)
youtube_dl/extractor/wimp.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/wimp.py
b/youtube_dl/extractor/wimp.py
index c022fb33e94ef7f9e6f0e90d73300f866e8ffc76..3dab9145ba9c57bfd1d78a90a847761c23f0d8a8 100644
(file)
--- a/
youtube_dl/extractor/wimp.py
+++ b/
youtube_dl/extractor/wimp.py
@@
-36,7
+36,8
@@
class WimpIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
youtube_id = self._search_regex(
- r"videoId\s*:\s*[\"']([0-9A-Za-z_-]{11})[\"']",
+ (r"videoId\s*:\s*[\"']([0-9A-Za-z_-]{11})[\"']",
+ r'data-id=["\']([0-9A-Za-z_-]{11})'),
webpage, 'video URL', default=None)
if youtube_id:
return {