projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23e6d50
)
[niconico] Clarify download
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 24 Nov 2013 05:53:50 +0000
(06:53 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 24 Nov 2013 05:53:50 +0000
(06:53 +0100)
youtube_dl/extractor/niconico.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/niconico.py
b/youtube_dl/extractor/niconico.py
index 22898b5a1b142cb9febed95dbabb6a5f28b3ad02..729607ea3a95c28b7507a3347f200d065a4e3a39 100644
(file)
--- a/
youtube_dl/extractor/niconico.py
+++ b/
youtube_dl/extractor/niconico.py
@@
-77,9
+77,9
@@
class NiconicoIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group(1)
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group(1)
- # Get video webpage
- video_webpage = self._download_webpage(
-
'http://www.nicovideo.jp/watch/' + video_id, video_id)
+ # Get video webpage
. We are not actually interested in it, but need
+ # the cookies in order to be able to download the info webpage
+
self._download_webpage(
'http://www.nicovideo.jp/watch/' + video_id, video_id)
video_info_webpage = self._download_webpage(
'http://ext.nicovideo.jp/api/getthumbinfo/' + video_id, video_id,
video_info_webpage = self._download_webpage(
'http://ext.nicovideo.jp/api/getthumbinfo/' + video_id, video_id,