Skip to content

Commit

Permalink
[wsj] Recognize another URL pattern (closes #14704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Chi Hsuan committed Nov 10, 2017
1 parent 61fb07e commit a9543e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
version <unreleased>

Extractors
+ [wsj] Recognize another URL pattern (#14704)


version 2017.11.06

Core
Expand Down
5 changes: 4 additions & 1 deletion youtube_dl/extractor/wsj.py
Expand Up @@ -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})
Expand All @@ -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):
Expand Down

0 comments on commit a9543e3

Please sign in to comment.