add more subtitles mime types to mimetype2ext and fix the platform subtitle extraction
[youtube-dl] / youtube_dl / utils.py
index a2c6780ca354f98514910752cec596a4eee172e5..6978a10e4cfa9b89874f5ec1da15c30a3e6d7e99 100644 (file)
@@ -1846,7 +1846,11 @@ def mimetype2ext(mt):
 
     return {
         '3gpp': '3gp',
+        'smptett+xml': 'tt',
+        'srt': 'srt',
+        'ttaf+xml': 'dfxp',
         'ttml+xml': 'ttml',
+        'vtt': 'vtt',
         'x-flv': 'flv',
         'x-mp4-fragmented': 'mp4',
         'x-ms-wmv': 'wmv',