[tudou] Use _download_xml
This commit is contained in:
parent
aab135516b
commit
87813a8570
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ class TudouIE(InfoExtractor):
|
||||||
info_url = "http://v2.tudou.com/f?id=" + str(video_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, video_id, "Opening the info webpage")
|
xml_data = self._download_xml(info_url, video_id, "Opening the info XML page")
|
||||||
final_url = self._html_search_regex('>(.+?)</f>', webpage, 'video url')
|
final_url = xml_data.text
|
||||||
return final_url
|
return final_url
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue