]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[iwara] Add width (closes #11724)
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 5 Feb 2017 14:30:13 +0000 (22:30 +0800)
committerYen 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

index 011274b0290625fb4f121753d25efbd89412e84d..a7514fc80b3dc64636a9f53b7abc8d7672cb0546 100644 (file)
@@ -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,
             })