Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
a9543e37
Unverified
Commit
a9543e37
authored
Nov 11, 2017
by
Yen Chi Hsuan
Browse files
[wsj] Recognize another URL pattern (closes #14704)
parent
61fb07e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
ChangeLog
ChangeLog
+6
-0
youtube_dl/extractor/wsj.py
youtube_dl/extractor/wsj.py
+4
-1
No files found.
ChangeLog
View file @
a9543e37
version <unreleased>
Extractors
+ [wsj] Recognize another URL pattern (#14704)
version 2017.11.06
Core
...
...
youtube_dl/extractor/wsj.py
View file @
a9543e37
...
...
@@ -13,7 +13,7 @@ class WSJIE(InfoExtractor):
_VALID_URL
=
r
'''(?x)
(?:
https?://video-api\.wsj\.com/api-video/player/iframe\.html\?.*?\bguid=|
https?://(?:www\.)?(?:wsj|barrons)\.com/video/[^/]+/|
https?://(?:www\.)?(?:wsj|barrons)\.com/video/
(?:
[^/]+/
)+
|
wsj:
)
(?P<id>[a-fA-F0-9-]{36})
...
...
@@ -38,6 +38,9 @@ class WSJIE(InfoExtractor):
},
{
'url'
:
'http://www.barrons.com/video/capitalism-deserves-more-respect-from-millennials/F301217E-6F46-43AE-B8D2-B7180D642EE9.html'
,
'only_matching'
:
True
,
},
{
'url'
:
'https://www.wsj.com/video/series/a-brief-history-of/the-modern-cell-carrier-how-we-got-here/980E2187-401D-48A1-B82B-1486CEE06CB9'
,
'only_matching'
:
True
,
}]
def
_real_extract
(
self
,
url
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment