Browse Source

fix nm video DL issue when logged in

totalwebcasting
Todoroki 10 years ago
parent
commit
c3c5c31517
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      youtube_dl/extractor/niconico.py

+ 1
- 2
youtube_dl/extractor/niconico.py View File

@ -89,7 +89,7 @@ class NiconicoIE(InfoExtractor):
if self._AUTHENTICATED: if self._AUTHENTICATED:
# Get flv info # Get flv info
flv_info_webpage = self._download_webpage( 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') video_id, 'Downloading flv info')
else: else:
# Get external player info # Get external player info
@ -97,7 +97,6 @@ class NiconicoIE(InfoExtractor):
'http://ext.nicovideo.jp/thumb_watch/' + video_id, video_id) 'http://ext.nicovideo.jp/thumb_watch/' + video_id, video_id)
thumb_play_key = self._search_regex( thumb_play_key = self._search_regex(
r'\'thumbPlayKey\'\s*:\s*\'(.*?)\'', ext_player_info, 'thumbPlayKey') r'\'thumbPlayKey\'\s*:\s*\'(.*?)\'', ext_player_info, 'thumbPlayKey')
# Get flv info # Get flv info
flv_info_data = compat_urllib_parse.urlencode({ flv_info_data = compat_urllib_parse.urlencode({
'k': thumb_play_key, 'k': thumb_play_key,


Loading…
Cancel
Save