youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit dd121cc1cab2f077cbf68ee432e83d4d094f0f9a
parent a3c3a1e12898a57fc2323e4c7cc37ace35482ecf
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 27 Aug 2017 03:12:56 +0700

[extractor/common] Extract height from res attribute of source tag for HTML5 videos (closes #14034)

Diffstat:
Myoutube_dl/extractor/common.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py @@ -2184,6 +2184,9 @@ class InfoExtractor(object): f = parse_content_type(source_attributes.get('type')) is_plain_url, formats = _media_formats(src, media_type, f) if is_plain_url: + # res attribute is not standard but seen several times + # in the wild + f['height'] = int_or_none(source_attributes.get('res')) f.update(formats[0]) media_info['formats'].append(f) else: