diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-06-09 00:30:23 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-06-09 00:30:23 +0700 |
commit | f5521ea209d1b20ec0bc6eeeb16e99101d05c854 (patch) | |
tree | 006cc3ddac2b97ae83206c35f2b5909fce244682 /youtube_dl/extractor/sexu.py | |
parent | 34646967ba8a09c4868f08f1903425b6d721c33d (diff) |
[sexu] Ensure height is int
Diffstat (limited to 'youtube_dl/extractor/sexu.py')
-rw-r--r-- | youtube_dl/extractor/sexu.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/sexu.py b/youtube_dl/extractor/sexu.py index 5e22ea730..3df51520b 100644 --- a/youtube_dl/extractor/sexu.py +++ b/youtube_dl/extractor/sexu.py @@ -32,8 +32,9 @@ class SexuIE(InfoExtractor): formats = [{ 'url': source['file'].replace('\\', ''), 'format_id': source.get('label'), - 'height': self._search_regex( - r'^(\d+)[pP]', source.get('label', ''), 'height', default=None), + 'height': int(self._search_regex( + r'^(\d+)[pP]', source.get('label', ''), 'height', + default=None)), } for source in sources if source.get('file')] self._sort_formats(formats) |