瀏覽代碼

[niconico:playlist] Use the same video url the webpage uses (closes #4133)

Jaime Marquínez Ferrándiz 10 年之前
父節點
當前提交
2fdbf27ad8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/niconico.py

+ 2 - 1
youtube_dl/extractor/niconico.py

@@ -175,7 +175,8 @@ class NiconicoPlaylistIE(InfoExtractor):
         entries = [{
         entries = [{
             '_type': 'url',
             '_type': 'url',
             'ie_key': NiconicoIE.ie_key(),
             '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]
         } for entry in entries]
 
 
         return {
         return {