projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4599 from t0mm0/daum_fix
[youtube-dl]
/
youtube_dl
/
extractor
/
tudou.py
diff --git
a/youtube_dl/extractor/tudou.py
b/youtube_dl/extractor/tudou.py
index c8780790a0048af748e1d4237cf2c949e56b094c..161e47624b383dfe76ea1e2ea6ec73395a97db53 100644
(file)
--- a/
youtube_dl/extractor/tudou.py
+++ b/
youtube_dl/extractor/tudou.py
@@
-36,8
+36,8
@@
class TudouIE(InfoExtractor):
'skip': 'Only works from China'
}]
'skip': 'Only works from China'
}]
- def _url_for_id(self, id, quality
=
None):
- info_url = "http://v2.tudou.com/f?id="
+
str(id)
+ def _url_for_id(self, id, quality
=
None):
+ info_url = "http://v2.tudou.com/f?id="
+
str(id)
if quality:
info_url += '&hd' + quality
webpage = self._download_webpage(info_url, id, "Opening the info webpage")
if quality:
info_url += '&hd' + quality
webpage = self._download_webpage(info_url, id, "Opening the info webpage")
@@
-73,7
+73,7
@@
class TudouIE(InfoExtractor):
result = []
len_parts = len(parts)
if len_parts > 1:
result = []
len_parts = len(parts)
if len_parts > 1:
- self.to_screen(
u
'%s: found %s parts' % (video_id, len_parts))
+ self.to_screen('%s: found %s parts' % (video_id, len_parts))
for part in parts:
part_id = part['k']
final_url = self._url_for_id(part_id, quality)
for part in parts:
part_id = part['k']
final_url = self._url_for_id(part_id, quality)