aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-09-12 22:52:51 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-09-12 22:52:51 +0800
commitaab135516b288f24c55178b024976fd3e130c7b8 (patch)
treeae5261a36535f540ff1a7f4ceea7e27a92648b94 /youtube_dl
parent141ba36996f77a420df69903a59792f6f93ae314 (diff)
[tudou] Avoid shadowing builtin names
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/tudou.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/tudou.py b/youtube_dl/extractor/tudou.py
index c9d80a7ef..6116b209d 100644
--- a/youtube_dl/extractor/tudou.py
+++ b/youtube_dl/extractor/tudou.py
@@ -31,11 +31,11 @@ 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)
+ def _url_for_id(self, video_id, quality=None):
+ info_url = "http://v2.tudou.com/f?id=" + str(video_id)
if quality:
info_url += '&hd' + quality
- webpage = self._download_webpage(info_url, id, "Opening the info webpage")
+ webpage = self._download_webpage(info_url, video_id, "Opening the info webpage")
final_url = self._html_search_regex('>(.+?)</f>', webpage, 'video url')
return final_url