[ifeng] Change to extract videoinfo

This commit is contained in:
Yonghui Chen 2018-01-16 17:10:10 +08:00
parent 665d784494
commit 76c5ae8e80

View File

@ -60,12 +60,20 @@ class IFengIE(InfoExtractor):
r'"createdate": "(?P<value>(.+?))"',
webpage, 'createdate', group='value', fatal=False))
formats = [
{
'url': video_url,
'ext': video_url[video_url.rfind('.') + 1:],
}
]
self._sort_formats(formats)
return {
'id': video_id,
'title': title,
'duration': int(duration),
'uploader': uploader,
'upload_date': upload_date,
'url': video_url,
'thumbnail': thumbnail
'thumbnail': thumbnail,
'formats': formats,
}