projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ea5e1
)
[extractor/common] improve dash format ids
author
remitamine
<remitamine@gmail.com>
Thu, 11 Feb 2016 09:33:26 +0000
(10:33 +0100)
committer
remitamine
<remitamine@gmail.com>
Thu, 11 Feb 2016 09:33:26 +0000
(10:33 +0100)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index a9497851cd5ac122c9ba5488e70b512d520d0a3a..00645feeda471230b0276c4aace5c2ff6420ffbe 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1443,7
+1443,7
@@
class InfoExtractor(object):
url_el = representation.find(_add_ns('BaseURL'))
filesize = int_or_none(url_el.attrib.get('{http://youtube.com/yt/2012/10/10}contentLength') if url_el is not None else None)
f = {
- 'format_id':
mpd_id or
representation_id,
+ 'format_id':
'%s-%s' % (mpd_id, representation_id) if mpd_id else
representation_id,
'url': base_url,
'width': int_or_none(representation_attrib.get('width')),
'height': int_or_none(representation_attrib.get('height')),