projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf0f5f
)
[iwara] Add width (closes #11724)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 5 Feb 2017 14:30:13 +0000
(22:30 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 5 Feb 2017 14:30:13 +0000
(22:30 +0800)
The heuristic is from #11724
youtube_dl/extractor/iwara.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/iwara.py
b/youtube_dl/extractor/iwara.py
index 011274b0290625fb4f121753d25efbd89412e84d..a7514fc80b3dc64636a9f53b7abc8d7672cb0546 100644
(file)
--- a/
youtube_dl/extractor/iwara.py
+++ b/
youtube_dl/extractor/iwara.py
@@
-81,6
+81,7
@@
class IwaraIE(InfoExtractor):
'format_id': format_id,
'ext': mimetype2ext(a_format.get('mime')) or 'mp4',
'height': height,
+ 'width': int_or_none(height / 9.0 * 16.0 if height else None),
'quality': 1 if format_id == 'Source' else 0,
})