projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b963d
)
[nytimes] Correct _VALID_URL of NYTimesArticleIE
author
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 12 May 2015 04:42:13 +0000
(12:42 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 12 May 2015 04:42:13 +0000
(12:42 +0800)
youtube_dl/extractor/nytimes.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nytimes.py
b/youtube_dl/extractor/nytimes.py
index 6ffbe38631a0e854d035586de7396e1714b81037..7f254b867da66f70a79ff7aac5d81eb6f37bd997 100644
(file)
--- a/
youtube_dl/extractor/nytimes.py
+++ b/
youtube_dl/extractor/nytimes.py
@@
-89,7
+89,7
@@
class NYTimesIE(NYTimesBaseIE):
class NYTimesArticleIE(NYTimesBaseIE):
- _VALID_URL = r'https?://(?:www
)?\.
nytimes\.com/(.(?<!video))*?/(?:[^/]+/)*(?P<id>[^.]+)(?:\.html)?'
+ _VALID_URL = r'https?://(?:www
\.)?
nytimes\.com/(.(?<!video))*?/(?:[^/]+/)*(?P<id>[^.]+)(?:\.html)?'
_TESTS = [{
'url': 'http://www.nytimes.com/2015/04/14/business/owner-of-gravity-payments-a-credit-card-processor-is-setting-a-new-minimum-wage-70000-a-year.html?_r=0',
'md5': 'e2076d58b4da18e6a001d53fd56db3c9',