From: Delon Date: Wed, 5 Aug 2015 10:22:25 +0000 (+0800) Subject: [tudou] Fix extracion X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=c71a3195afa8c2a9ed5fe0ffa56ff6c969147d91;p=youtube-dl [tudou] Fix extracion --- diff --git a/youtube_dl/extractor/tudou.py b/youtube_dl/extractor/tudou.py index c89de5ba4..9b934cb57 100644 --- a/youtube_dl/extractor/tudou.py +++ b/youtube_dl/extractor/tudou.py @@ -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): info_url = "http://v2.tudou.com/f?id=" + str(id) if quality: @@ -76,6 +78,9 @@ class TudouIE(InfoExtractor): 'ext': ext, 'title': title, 'thumbnail': thumbnail_url, + 'http_headers': { + 'Referer': self._PLAYER_URL, + }, } result.append(part_info)