projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ce8f1
)
[niconico] fix sp subdomain links
author
Luca Steeb
<contact@luca-steeb.com>
Sun, 25 Jun 2017 19:30:05 +0000
(21:30 +0200)
committer
Luca Steeb
<contact@luca-steeb.com>
Sun, 25 Jun 2017 19:30:05 +0000
(21:30 +0200)
youtube_dl/extractor/niconico.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/niconico.py
b/youtube_dl/extractor/niconico.py
index 8baac23e4b16643a59e6a83570862b6a5afd2b45..f268a72d5690a8e96331647bdfa25994fdf51f1b 100644
(file)
--- 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):