projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab1355
)
[tudou] Use _download_xml
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 12 Sep 2015 18:36:51 +0000
(
02:36
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 12 Sep 2015 18:36:51 +0000
(
02:36
+0800)
youtube_dl/extractor/tudou.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tudou.py
b/youtube_dl/extractor/tudou.py
index 6116b209d9750fb48eba5dc5aafa33b61e374b4c..3b993192ccd9f493dc830ef4ae1bae28410f07a8 100644
(file)
--- 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 web
page")
- 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):