1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[tudou] Avoid shadowing builtin names

This commit is contained in:
Yen Chi Hsuan 2015-09-12 22:52:51 +08:00
parent 141ba36996
commit aab135516b

View file

@ -31,11 +31,11 @@ class TudouIE(InfoExtractor):
_PLAYER_URL = 'http://js.tudouui.com/bin/lingtong/PortalPlayer_177.swf' _PLAYER_URL = 'http://js.tudouui.com/bin/lingtong/PortalPlayer_177.swf'
def _url_for_id(self, id, quality=None): def _url_for_id(self, video_id, quality=None):
info_url = "http://v2.tudou.com/f?id=" + str(id) info_url = "http://v2.tudou.com/f?id=" + str(video_id)
if quality: if quality:
info_url += '&hd' + 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') final_url = self._html_search_regex('>(.+?)</f>', webpage, 'video url')
return final_url return final_url