Yen Chi Hsuan
8 years ago
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30
1 changed files with
3 additions and
0 deletions
-
youtube_dl/extractor/tudou.py
|
@ -65,6 +65,9 @@ class TudouIE(InfoExtractor): |
|
|
if quality: |
|
|
if quality: |
|
|
info_url += '&hd' + quality |
|
|
info_url += '&hd' + quality |
|
|
xml_data = self._download_xml(info_url, video_id, 'Opening the info XML page') |
|
|
xml_data = self._download_xml(info_url, video_id, 'Opening the info XML page') |
|
|
|
|
|
error = xml_data.attrib.get('error') |
|
|
|
|
|
if error is not None: |
|
|
|
|
|
raise ExtractorError('Tudou said: %s' % error, expected=True) |
|
|
final_url = xml_data.text |
|
|
final_url = xml_data.text |
|
|
return final_url |
|
|
return final_url |
|
|
|
|
|
|
|
|