[vimeo] always convert width, height and bitrate to int
This commit is contained in:
parent
fff496c689
commit
35a3ff1d33
1 changed files with 6 additions and 6 deletions
|
@ -395,14 +395,14 @@ class VimeoIE(VimeoBaseInfoExtractor):
|
||||||
'ext': codec_extension,
|
'ext': codec_extension,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
'width': file_info.get('width'),
|
'width': int_or_none(file_info.get('width')),
|
||||||
'height': file_info.get('height'),
|
'height': int_or_none(file_info.get('height')),
|
||||||
'tbr': file_info.get('bitrate'),
|
'tbr': int_or_none(file_info.get('bitrate')),
|
||||||
})
|
})
|
||||||
formats = []
|
formats = []
|
||||||
hls = config_files.get("hls")
|
m3u8_url = config_files.get('hls', {}).get('all')
|
||||||
if hls:
|
if m3u8_url:
|
||||||
formats = self._extract_m3u8_formats(hls['all'], video_id, 'mp4', 'm3u8_native', 0, 'hls', fatal=False)
|
formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', 'm3u8_native', 0, 'hls', fatal=False)
|
||||||
for key in ('other', 'sd', 'hd'):
|
for key in ('other', 'sd', 'hd'):
|
||||||
formats += files[key]
|
formats += files[key]
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
Loading…
Reference in a new issue