projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3464696
)
[sexu] Ensure height is int
author
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 17:30:23 +0000
(
00:30
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 17:30:23 +0000
(
00:30
+0700)
youtube_dl/extractor/sexu.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sexu.py
b/youtube_dl/extractor/sexu.py
index 5e22ea73029b3d254d76fa0722c8041daa17a6fd..3df51520b06e8bc2da1b3afa3fee75db4e21be46 100644
(file)
--- 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)