mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 01:25:11 +00:00
[kaltura] Improve
This commit is contained in:
parent
5b5fae5f20
commit
d80a39cec8
1 changed files with 5 additions and 5 deletions
|
@ -149,14 +149,14 @@ def _real_extract(self, url):
|
||||||
video_url += '?referrer=%s' % referrer
|
video_url += '?referrer=%s' % referrer
|
||||||
formats.append({
|
formats.append({
|
||||||
'format_id': '%(fileExt)s-%(bitrate)s' % f,
|
'format_id': '%(fileExt)s-%(bitrate)s' % f,
|
||||||
'ext': f['fileExt'],
|
'ext': f.get('fileExt'),
|
||||||
'tbr': f['bitrate'],
|
'tbr': int_or_none(f['bitrate']),
|
||||||
'fps': f.get('frameRate'),
|
'fps': int_or_none(f.get('frameRate')),
|
||||||
'filesize_approx': int_or_none(f.get('size'), invscale=1024),
|
'filesize_approx': int_or_none(f.get('size'), invscale=1024),
|
||||||
'container': f.get('containerFormat'),
|
'container': f.get('containerFormat'),
|
||||||
'vcodec': f.get('videoCodecId'),
|
'vcodec': f.get('videoCodecId'),
|
||||||
'height': f.get('height'),
|
'height': int_or_none(f.get('height')),
|
||||||
'width': f.get('width'),
|
'width': int_or_none(f.get('width')),
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
})
|
})
|
||||||
self._check_formats(formats, entry_id)
|
self._check_formats(formats, entry_id)
|
||||||
|
|
Loading…
Reference in a new issue