Browse Source

[tudou] Fix extracion

totalwebcasting
Delon 9 years ago
committed by Sergey M․
parent
commit
c71a3195af
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      youtube_dl/extractor/tudou.py

+ 5
- 0
youtube_dl/extractor/tudou.py View File

@ -29,6 +29,8 @@ class TudouIE(InfoExtractor):
} }
}] }]
_PLAYER_URL = 'http://js.tudouui.com/bin/lingtong/PortalPlayer_177.swf'
def _url_for_id(self, id, quality=None): def _url_for_id(self, id, quality=None):
info_url = "http://v2.tudou.com/f?id=" + str(id) info_url = "http://v2.tudou.com/f?id=" + str(id)
if quality: if quality:
@ -76,6 +78,9 @@ class TudouIE(InfoExtractor):
'ext': ext, 'ext': ext,
'title': title, 'title': title,
'thumbnail': thumbnail_url, 'thumbnail': thumbnail_url,
'http_headers': {
'Referer': self._PLAYER_URL,
},
} }
result.append(part_info) result.append(part_info)


Loading…
Cancel
Save