Browse Source

[tudou] Avoid shadowing builtin names

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
aab135516b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      youtube_dl/extractor/tudou.py

+ 3
- 3
youtube_dl/extractor/tudou.py View File

@ -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


Loading…
Cancel
Save