]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/extractor/common.py
[common] Skip TYPE=CLOSED-CAPTIONS lines in m3u8 manifests
[youtube-dl] / youtube_dl / extractor / common.py
index 17e866f9116b48f56703a3d54195e171a20fa17c..4bfa610c168ce354c681220d89600a8e2b229143 100644 (file)
@@ -1141,7 +1141,7 @@ class InfoExtractor(object):
                 format_id = []
                 if m3u8_id:
                     format_id.append(m3u8_id)
-                last_media_name = last_media.get('NAME') if last_media and last_media.get('TYPE') != 'SUBTITLES' else None
+                last_media_name = last_media.get('NAME') if last_media and last_media.get('TYPE') not in ('SUBTITLES', 'CLOSED-CAPTIONS') else None
                 # Despite specification does not mention NAME attribute for
                 # EXT-X-STREAM-INF it still sometimes may be present
                 stream_name = last_info.get('NAME') or last_media_name