diff options
author | sprhawk <465558+sprhawk@users.noreply.github.com> | 2017-12-11 16:02:14 +0800 |
---|---|---|
committer | sprhawk <465558+sprhawk@users.noreply.github.com> | 2017-12-11 16:02:14 +0800 |
commit | 0c69958844a446bc3373f45f8f750cbc3202d14e (patch) | |
tree | 5573778e20ad73c99e92a9d5796b4d126273643c | |
parent | 3281af3464a910cb88f22ef0ece4a8323c2a4d38 (diff) | |
download | youtube-dl-0c69958844a446bc3373f45f8f750cbc3202d14e.zip youtube-dl-0c69958844a446bc3373f45f8f750cbc3202d14e.tar.gz youtube-dl-0c69958844a446bc3373f45f8f750cbc3202d14e.tar.bz2 |
add other properties; remove print verbose
-rw-r--r-- | youtube_dl/extractor/weibo.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/weibo.py b/youtube_dl/extractor/weibo.py index 9b398e9..b835f89 100644 --- a/youtube_dl/extractor/weibo.py +++ b/youtube_dl/extractor/weibo.py @@ -52,7 +52,6 @@ class WeiboIE(InfoExtractor): method = 'POST' ) webpage,urlh = self._download_webpage_handle(r_genvisitor, video_id, note="gen visitor") - print("webpage", webpage) p = webpage.split("&&")[1] # split "gen_callback && gen_callback(...)" i1 = p.find('{') @@ -90,13 +89,13 @@ class WeiboIE(InfoExtractor): if isinstance(f, list): if len(f) > 0: vid_url = f[0] - print("%s:%s" % (res, vid_url)) formats.append({ - 'url': vid_url + 'url': vid_url, + 'format': 'mp4', + 'height': int(res), }) self._sort_formats(formats) uploader = self._og_search_property('nick-name', webpage, 'uploader', default = None) - print(title, uploader) return { 'id': video_id, 'title': title, |