[niconico:playlist] Use the same video url the webpage uses (closes #4133)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 8 Nov 2014 13:53:23 +0000 (14:53 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 8 Nov 2014 13:53:23 +0000 (14:53 +0100)
youtube_dl/extractor/niconico.py

index 45cbd4ee97b8cb66e3227d72e0ec7c3f238fa5f6..3b5784e8f5cb5ae8014c4f51d2d451d989b87860 100644 (file)
@@ -175,7 +175,8 @@ class NiconicoPlaylistIE(InfoExtractor):
         entries = [{
             '_type': 'url',
             'ie_key': NiconicoIE.ie_key(),
-            'url': 'http://www.nicovideo.jp/watch/%s' % entry['item_id'],
+            'url': ('http://www.nicovideo.jp/watch/%s' %
+                entry['item_data']['video_id']),
         } for entry in entries]
 
         return {