diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-09-13 02:36:51 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-09-13 02:36:51 +0800 |
commit | 87813a857009dc3c3dfcc421679e5e806d363863 (patch) | |
tree | 9f597005099884f0302b97af03930b65730d5849 /youtube_dl | |
parent | aab135516b288f24c55178b024976fd3e130c7b8 (diff) |
[tudou] Use _download_xml
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/tudou.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tudou.py b/youtube_dl/extractor/tudou.py index 6116b209d..3b993192c 100644 --- a/youtube_dl/extractor/tudou.py +++ b/youtube_dl/extractor/tudou.py @@ -35,8 +35,8 @@ class TudouIE(InfoExtractor): info_url = "http://v2.tudou.com/f?id=" + str(video_id) if quality: info_url += '&hd' + quality - webpage = self._download_webpage(info_url, video_id, "Opening the info webpage") - final_url = self._html_search_regex('>(.+?)</f>', webpage, 'video url') + xml_data = self._download_xml(info_url, video_id, "Opening the info XML page") + final_url = xml_data.text return final_url def _real_extract(self, url): |