A feature-rich command-line audio/video downloader
[mtv] correct scc extention in extracted subtitles(closes #13730)
Remita Amine5ea765fb7205
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.pyindex 1154a35365..7a3b57abd8 100644--- a/youtube_dl/extractor/mtv.py+++ b/youtube_dl/extractor/mtv.py@@ -115,10 +115,17 @@ class MTVServicesInfoExtractor(InfoExtractor):if transcript.get('kind') != 'captions':continuelang = transcript.get('srclang')- subtitles[lang] = [{- 'url': compat_str(typographic.get('src')),- 'ext': typographic.get('format')- } for typographic in transcript.findall('./typographic')]+ for typographic in transcript.findall('./typographic'):+ sub_src = typographic.get('src')+ if not sub_src:+ continue+ ext = typographic.get('format')+ if ext == 'cea-608':+ ext = 'scc'+ subtitles.setdefault(lang, []).append({+ 'url': compat_str(sub_src),+ 'ext': ext+ })return subtitlesdef _get_video_info(self, itemdoc, use_hls=True):