diff options
author | remitamine <remitamine@gmail.com> | 2015-09-05 16:53:17 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2015-09-05 16:53:17 +0100 |
commit | 75b399f45557468e602c3b0126a9b5ce4736218f (patch) | |
tree | 5a67f4c49c09534c564fa8ec8839f56de3de72bb /youtube_dl/extractor/nowness.py | |
parent | c23c3d7d7d3ca9368b6fca70b696fe64ca55ba07 (diff) |
[nowness] fix _VALID_URL regex
Diffstat (limited to 'youtube_dl/extractor/nowness.py')
-rw-r--r-- | youtube_dl/extractor/nowness.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/nowness.py b/youtube_dl/extractor/nowness.py index 1acb9b92a..401d3b646 100644 --- a/youtube_dl/extractor/nowness.py +++ b/youtube_dl/extractor/nowness.py @@ -33,7 +33,7 @@ class NownessBaseIE(InfoExtractor): class NownessIE(NownessBaseIE): IE_NAME = 'nowness' - _VALID_URL = r'https?://(?:(?:www|cn)\.)?nowness\.com/(story|series/[^/])/(?P<id>[0-9a-z-]+)' + _VALID_URL = r'https?://(?:(?:www|cn)\.)?nowness\.com/(story|series/[^/]+)/(?P<id>[0-9a-z-]+)' _TESTS = [ { 'url': 'https://www.nowness.com/story/candor-the-art-of-gesticulation', @@ -112,7 +112,7 @@ class NownessSerieIE(NownessBaseIE): display_id = self._match_id(url) lang = 'zh-cn' if 'cn.nowness.com' in url else 'en-us' - request = compat_urllib_request.Request('https://api.nowness.com/api/series/getBySlug/%s' % display_id, headers={ + request = compat_urllib_request.Request('http://api.nowness.com/api/series/getBySlug/%s' % display_id, headers={ 'X-Nowness-Language': lang, }) serie = self._download_json(request, display_id) |