[ifeng] Change to extract videoinfo
This commit is contained in:
parent
665d784494
commit
76c5ae8e80
@ -60,12 +60,20 @@ class IFengIE(InfoExtractor):
|
|||||||
r'"createdate": "(?P<value>(.+?))"',
|
r'"createdate": "(?P<value>(.+?))"',
|
||||||
webpage, 'createdate', group='value', fatal=False))
|
webpage, 'createdate', group='value', fatal=False))
|
||||||
|
|
||||||
|
formats = [
|
||||||
|
{
|
||||||
|
'url': video_url,
|
||||||
|
'ext': video_url[video_url.rfind('.') + 1:],
|
||||||
|
}
|
||||||
|
]
|
||||||
|
self._sort_formats(formats)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'duration': int(duration),
|
'duration': int(duration),
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'upload_date': upload_date,
|
'upload_date': upload_date,
|
||||||
'url': video_url,
|
'thumbnail': thumbnail,
|
||||||
'thumbnail': thumbnail
|
'formats': formats,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user