aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-04-30 09:01:05 +0100
committerRemita Amine <remitamine@gmail.com>2017-04-30 09:03:10 +0100
commit98ce1a3fd31b11119d031ceb7ad032bea22d373a (patch)
tree053967355345b02ade559249af0a5a7124a6491b /youtube_dl/utils.py
parentba5c3caf88417d81fda5d3b629336c9c2d6fa6e9 (diff)
[utils] add video/mp2t to mimetype2ext
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 41bc20544..9d7798ee8 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -2273,10 +2273,8 @@ 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',
@@ -2284,11 +2282,11 @@ def mimetype2ext(mt):
'x-mpegurl': 'm3u8',
'vnd.apple.mpegurl': 'm3u8',
'dash+xml': 'mpd',
- 'f4m': 'f4m',
'f4m+xml': 'f4m',
'hds+xml': 'f4m',
'vnd.ms-sstr+xml': 'ism',
'quicktime': 'mov',
+ 'mp2t': 'ts',
}.get(res, res)