1
0
Fork 0

[extractor,utils] Detect more codecs/mimetypes

Fixes: https://github.com/ytdl-org/youtube-dl/issues/29943
This commit is contained in:
pukkandan 2021-10-13 05:03:40 +05:30
commit 6993f78d1b
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
2 changed files with 3 additions and 1 deletions

View file

@ -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