projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9a743d
)
[common] Ignore subtitles in m3u8
author
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 7 May 2015 10:06:22 +0000
(18:06 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 7 May 2015 10:06:22 +0000
(18:06 +0800)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 34e27a35ad2d28d0618e22a42cfedfb97b70dc5f..981e34bc7ccce5a87b2ec518efaa016afbd27002 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-896,7
+896,7
@@
class InfoExtractor(object):
format_id = []
if m3u8_id:
format_id.append(m3u8_id)
- last_media_name = last_media.get('NAME') if last_media else None
+ last_media_name = last_media.get('NAME') if last_media
and last_media.get('TYPE') != 'SUBTITLES'
else None
format_id.append(last_media_name if last_media_name else '%d' % (tbr if tbr else len(formats)))
f = {
'format_id': '-'.join(format_id),