A feature-rich command-line audio/video downloader
[discoverygo] correct ttml subtitle extension
Remita Aminec402e7f3a03a
diff --git a/youtube_dl/extractor/discoverygo.py b/youtube_dl/extractor/discoverygo.pyindex 99376454b2..3368c4c075 100644--- a/youtube_dl/extractor/discoverygo.py+++ b/youtube_dl/extractor/discoverygo.py@@ -5,6 +5,7 @@ import refrom .common import InfoExtractorfrom ..compat import compat_strfrom ..utils import (+ determine_ext,extract_attributes,ExtractorError,int_or_none,@@ -73,7 +74,11 @@ class DiscoveryGoBaseIE(InfoExtractor):not subtitle_url.startswith('http')):continuelang = caption.get('fileLang', 'en')- subtitles.setdefault(lang, []).append({'url': subtitle_url})+ ext = determine_ext(subtitle_url)+ subtitles.setdefault(lang, []).append({+ 'url': subtitle_url,+ 'ext': 'ttml' if ext == 'xml' else ext,+ })return {'id': video_id,