projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd121cc
)
[extractor/common] Extract format id from label attribute of source tag for HTML5...
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Aug 2017 20:27:05 +0000
(
03:27
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Aug 2017 20:27:05 +0000
(
03:27
+0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index b4af3f987a4fadd0085a18e50b7909ec4eb5e6e5..74d30ec50ac7f9d5db44d46bab1dd482fcc34f59 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-2186,7
+2186,10
@@
class InfoExtractor(object):
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({
+ 'height': int_or_none(source_attributes.get('res')),
+ 'format_id': source_attributes.get('label'),
+ })
f.update(formats[0])
media_info['formats'].append(f)
else: