aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-12 12:42:13 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-12 12:42:13 +0800
commit5332fd91bf16867b6777bd6cfd0b5086f84112c5 (patch)
tree77a851ed2be286a4bfcdcb3b2b8b7eae46434d74 /youtube_dl/extractor
parentd4b963d0a68f81f4fef5495af14e2e41add21a0f (diff)
[nytimes] Correct _VALID_URL of NYTimesArticleIE
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/nytimes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nytimes.py b/youtube_dl/extractor/nytimes.py
index 6ffbe3863..7f254b867 100644
--- 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',