mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 14:55:45 +00:00
add other properties; remove print verbose
This commit is contained in:
parent
3281af3464
commit
0c69958844
1 changed files with 3 additions and 4 deletions
|
@ -52,7 +52,6 @@ class WeiboIE(InfoExtractor):
|
||||||
method = 'POST'
|
method = 'POST'
|
||||||
)
|
)
|
||||||
webpage,urlh = self._download_webpage_handle(r_genvisitor, video_id, note="gen visitor")
|
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(...)"
|
p = webpage.split("&&")[1] # split "gen_callback && gen_callback(...)"
|
||||||
i1 = p.find('{')
|
i1 = p.find('{')
|
||||||
|
@ -90,13 +89,13 @@ class WeiboIE(InfoExtractor):
|
||||||
if isinstance(f, list):
|
if isinstance(f, list):
|
||||||
if len(f) > 0:
|
if len(f) > 0:
|
||||||
vid_url = f[0]
|
vid_url = f[0]
|
||||||
print("%s:%s" % (res, vid_url))
|
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': vid_url
|
'url': vid_url,
|
||||||
|
'format': 'mp4',
|
||||||
|
'height': int(res),
|
||||||
})
|
})
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
uploader = self._og_search_property('nick-name', webpage, 'uploader', default = None)
|
uploader = self._og_search_property('nick-name', webpage, 'uploader', default = None)
|
||||||
print(title, uploader)
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
|
|
Loading…
Reference in a new issue