summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuca Steeb <contact@luca-steeb.com>2017-06-25 21:30:05 +0200
committerLuca Steeb <contact@luca-steeb.com>2017-06-25 21:30:05 +0200
commit4a87de72dfbc7a0ad9496b225a865907715a7bad (patch)
tree70e1f30472a83ffefed27b4220fdf76852767290
parenta7ce8f16c4ee4b8f567d943ada8ade8a50f99860 (diff)
downloadyoutube-dl-4a87de72dfbc7a0ad9496b225a865907715a7bad.tar.gz
youtube-dl-4a87de72dfbc7a0ad9496b225a865907715a7bad.tar.xz
youtube-dl-4a87de72dfbc7a0ad9496b225a865907715a7bad.zip
[niconico] fix sp subdomain links
-rw-r--r--youtube_dl/extractor/niconico.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.py
index 8baac23e4..f268a72d5 100644
--- a/youtube_dl/extractor/niconico.py
+++ b/youtube_dl/extractor/niconico.py
@@ -83,9 +83,12 @@ class NiconicoIE(InfoExtractor):
             'uploader_id': '312',
         },
         'skip': 'The viewing period of the video you were searching for has expired.',
+    }, {
+        'url': 'http://sp.nicovideo.jp/watch/sm28964488?ss_pos=1&cp_in=wt_tg',
+        'only_matching': True,
     }]
 
-    _VALID_URL = r'https?://(?:www\.|secure\.)?nicovideo\.jp/watch/(?P<id>(?:[a-z]{2})?[0-9]+)'
+    _VALID_URL = r'https?://(?:www\.|secure\.|sp\.)?nicovideo\.jp/watch/(?P<id>(?:[a-z]{2})?[0-9]+)'
     _NETRC_MACHINE = 'niconico'
 
     def _real_initialize(self):