projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Restrict embed regex (#14600)
[youtube-dl]
/
youtube_dl
/
extractor
/
wsj.py
diff --git
a/youtube_dl/extractor/wsj.py
b/youtube_dl/extractor/wsj.py
index 45cfca7c52e92fa8f4aa8e06e633d5198e3066d3..9b5487710e9d1b73a2e26983bacde9e2e8891761 100644
(file)
--- a/
youtube_dl/extractor/wsj.py
+++ b/
youtube_dl/extractor/wsj.py
@@
-13,7
+13,7
@@
class WSJIE(InfoExtractor):
_VALID_URL = r'''(?x)
(?:
https?://video-api\.wsj\.com/api-video/player/iframe\.html\?.*?\bguid=|
_VALID_URL = r'''(?x)
(?:
https?://video-api\.wsj\.com/api-video/player/iframe\.html\?.*?\bguid=|
- https?://(?:www\.)?
wsj
\.com/video/[^/]+/|
+ https?://(?:www\.)?
(?:wsj|barrons)
\.com/video/[^/]+/|
wsj:
)
(?P<id>[a-fA-F0-9-]{36})
wsj:
)
(?P<id>[a-fA-F0-9-]{36})
@@
-35,6
+35,9
@@
class WSJIE(InfoExtractor):
}, {
'url': 'http://www.wsj.com/video/can-alphabet-build-a-smarter-city/359DDAA8-9AC1-489C-82E6-0429C1E430E0.html',
'only_matching': True,
}, {
'url': 'http://www.wsj.com/video/can-alphabet-build-a-smarter-city/359DDAA8-9AC1-489C-82E6-0429C1E430E0.html',
'only_matching': True,
+ }, {
+ 'url': 'http://www.barrons.com/video/capitalism-deserves-more-respect-from-millennials/F301217E-6F46-43AE-B8D2-B7180D642EE9.html',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):