aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-13 05:03:40 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-13 05:05:29 +0530
commit6993f78d1bbb62b24dd77ac7fce3ead250fbe01f (patch)
tree1fcb0cc1b52018b98688c35166c6fdc54e51abff /yt_dlp/extractor/common.py
parent993191c0d5f711d4978c680d705ce09d957aa176 (diff)
downloadhypervideo-pre-6993f78d1bbb62b24dd77ac7fce3ead250fbe01f.tar.lz
hypervideo-pre-6993f78d1bbb62b24dd77ac7fce3ead250fbe01f.tar.xz
hypervideo-pre-6993f78d1bbb62b24dd77ac7fce3ead250fbe01f.zip
[extractor,utils] Detect more codecs/mimetypes
Fixes: https://github.com/ytdl-org/youtube-dl/issues/29943
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 5b7b8891a..14201c538 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -2646,6 +2646,8 @@ class InfoExtractor(object):
content_type = mime_type
elif codecs.split('.')[0] == 'stpp':
content_type = 'text'
+ elif mimetype2ext(mime_type) in ('tt', 'dfxp', 'ttml', 'xml', 'json'):
+ content_type = 'text'
else:
self.report_warning('Unknown MIME type %s in DASH manifest' % mime_type)
continue