diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2017-02-05 22:30:13 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2017-02-05 22:30:13 +0800 |
commit | 2ab2c0d1f53f66614eda4fefb042e851e78097f0 (patch) | |
tree | 27242df85bf2d72302f030fc0b12c029febe9887 /youtube_dl/extractor/iwara.py | |
parent | caf0f5f8b7d0854caaf6778fe3a646ee0d7668fe (diff) |
[iwara] Add width (closes #11724)
The heuristic is from #11724
Diffstat (limited to 'youtube_dl/extractor/iwara.py')
-rw-r--r-- | youtube_dl/extractor/iwara.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/iwara.py b/youtube_dl/extractor/iwara.py index 011274b02..a7514fc80 100644 --- 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, }) |