1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-23 00:02:24 +00:00

[sexu] Ensure height is int

This commit is contained in:
Sergey M․ 2017-06-09 00:30:23 +07:00
parent 34646967ba
commit f5521ea209
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -32,8 +32,9 @@ class SexuIE(InfoExtractor):
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)