]> git.bitcoin.ninja Git - youtube-dl/commitdiff
fix nm video DL issue when logged in
authorTodoroki <todoroki.auone@gmail.com>
Wed, 18 Mar 2015 13:19:55 +0000 (22:19 +0900)
committerTodoroki <todoroki.auone@gmail.com>
Wed, 18 Mar 2015 13:19:55 +0000 (22:19 +0900)
youtube_dl/extractor/niconico.py

index 7fb4e57dfb81029c0fc46dbab83ced5b2fbc766b..a48df7f6218be27bd3a083f00da4ec8efb3d9309 100644 (file)
@@ -89,7 +89,7 @@ class NiconicoIE(InfoExtractor):
         if self._AUTHENTICATED:
             # Get flv info
             flv_info_webpage = self._download_webpage(
-                'http://flapi.nicovideo.jp/api/getflv?v=' + video_id,
+                'http://flapi.nicovideo.jp/api/getflv/' + video_id + '?as3=1',
                 video_id, 'Downloading flv info')
         else:
             # Get external player info
@@ -97,7 +97,6 @@ class NiconicoIE(InfoExtractor):
                 'http://ext.nicovideo.jp/thumb_watch/' + video_id, video_id)
             thumb_play_key = self._search_regex(
                 r'\'thumbPlayKey\'\s*:\s*\'(.*?)\'', ext_player_info, 'thumbPlayKey')
-
             # Get flv info
             flv_info_data = compat_urllib_parse.urlencode({
                 'k': thumb_play_key,