1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[iwara] Add width (closes #11724)

The heuristic is from #11724
This commit is contained in:
Yen Chi Hsuan 2017-02-05 22:30:13 +08:00
parent caf0f5f8b7
commit 2ab2c0d1f5
No known key found for this signature in database
GPG key ID: 7F902A182457CA23

View 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,
})