mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 06:00:00 +00:00
[sexu] Ensure height is int
This commit is contained in:
parent
34646967ba
commit
f5521ea209
1 changed files with 3 additions and 2 deletions
|
@ -32,8 +32,9 @@ def _real_extract(self, url):
|
||||||
formats = [{
|
formats = [{
|
||||||
'url': source['file'].replace('\\', ''),
|
'url': source['file'].replace('\\', ''),
|
||||||
'format_id': source.get('label'),
|
'format_id': source.get('label'),
|
||||||
'height': self._search_regex(
|
'height': int(self._search_regex(
|
||||||
r'^(\d+)[pP]', source.get('label', ''), 'height', default=None),
|
r'^(\d+)[pP]', source.get('label', ''), 'height',
|
||||||
|
default=None)),
|
||||||
} for source in sources if source.get('file')]
|
} for source in sources if source.get('file')]
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue