about summary refs log tree commit diff
path: root/youtube_dl/extractor/tudou.py
diff options
context:
space:
mode:
authorDelon <liuxi326@qq.com>2015-08-05 18:22:25 +0800
committerSergey M․ <dstftw@gmail.com>2015-08-05 23:04:49 +0600
commitc71a3195afa8c2a9ed5fe0ffa56ff6c969147d91 (patch)
treec0c6afdd62a2593a8951ee6fcab841a24d461bf8 /youtube_dl/extractor/tudou.py
parent54a9328b205e8a2c916d59fd81bdb1ede25cf87a (diff)
downloadyoutube-dl-c71a3195afa8c2a9ed5fe0ffa56ff6c969147d91.tar.gz
youtube-dl-c71a3195afa8c2a9ed5fe0ffa56ff6c969147d91.tar.xz
youtube-dl-c71a3195afa8c2a9ed5fe0ffa56ff6c969147d91.zip
[tudou] Fix extracion
Diffstat (limited to 'youtube_dl/extractor/tudou.py')
-rw-r--r--youtube_dl/extractor/tudou.py5
1 files changed, 5 insertions, 0 deletions
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)