aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-07 18:06:22 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-07 18:06:22 +0800
commit05d5392cdaa558dba285c328182d4f3e82fb8e8b (patch)
treead7891c4831e36c39ddac82a4123f0964372289d /youtube_dl/extractor/common.py
parentd9a743d9178b0ed1e44168e42e8cec2d7dd8d63e (diff)
[common] Ignore subtitles in m3u8
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 34e27a35a..981e34bc7 100644
--- 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),