projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a17a9
)
[common] Fix format_id construction for HLS
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 29 Apr 2016 14:49:04 +0000
(22:49 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 29 Apr 2016 14:50:16 +0000
(22:50 +0800)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 2763d2ffe8bfe18c1815b62b1ed3ec4680acf42a..61a5d124cd2a62d1abd2fc627507496a95794290 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1142,7
+1142,7
@@
class InfoExtractor(object):
# Bandwidth of live streams may differ over time thus making
# format_id unpredictable. So it's better to keep provided
# format_id intact.
- if
last_media_name and
not live:
+ if not live:
format_id.append(last_media_name if last_media_name else '%d' % (tbr if tbr else len(formats)))
f = {
'format_id': '-'.join(format_id),