mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 04:02:11 +00:00
[xuite] Add height information for the two formats
This commit is contained in:
parent
fe7710cbcc
commit
6348ad12a0
1 changed files with 11 additions and 11 deletions
|
@ -129,17 +129,17 @@ class XuiteIE(InfoExtractor):
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'hq_src' in flv_config:
|
if 'hq_src' in flv_config:
|
||||||
src = flv_config['src']
|
urls = [flv_config['src'], flv_config['hq_src']]
|
||||||
src_hq = flv_config['hq_src']
|
|
||||||
ret_attrs['formats'] = [{
|
ret_attrs['formats'] = []
|
||||||
'url': src,
|
|
||||||
'ext': self._guess_ext(src),
|
for url in urls:
|
||||||
'format_id': self._type_string(src)
|
ret_attrs['formats'].append({
|
||||||
}, {
|
'url': url,
|
||||||
'url': src_hq,
|
'ext': self._guess_ext(url),
|
||||||
'ext': self._guess_ext(src_hq),
|
'format_id': self._type_string(url),
|
||||||
'format_id': self._type_string(src_hq)
|
'height': int(self._type_string(url))
|
||||||
}]
|
})
|
||||||
else:
|
else:
|
||||||
ret_attrs['url'] = flv_config['src']
|
ret_attrs['url'] = flv_config['src']
|
||||||
ret_attrs['ext'] = self._guess_ext(flv_config['src'])
|
ret_attrs['ext'] = self._guess_ext(flv_config['src'])
|
||||||
|
|
Loading…
Reference in a new issue