Skip to content

A feature-rich command-line audio/video downloader

[iwara] Add width (closes #11724)

Yen Chi Hsuan2ab2c0d1f53f
diff --git a/youtube_dl/extractor/iwara.py b/youtube_dl/extractor/iwara.py
index 011274b029..a7514fc80b 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,
})