浏览代码

[utils] add video/mp2t to mimetype2ext

Remita Amine 8 年之前
父节点
当前提交
98ce1a3fd3
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      youtube_dl/utils.py

+ 1 - 3
youtube_dl/utils.py

@@ -2273,10 +2273,8 @@ def mimetype2ext(mt):
     return {
     return {
         '3gpp': '3gp',
         '3gpp': '3gp',
         'smptett+xml': 'tt',
         'smptett+xml': 'tt',
-        'srt': 'srt',
         'ttaf+xml': 'dfxp',
         'ttaf+xml': 'dfxp',
         'ttml+xml': 'ttml',
         'ttml+xml': 'ttml',
-        'vtt': 'vtt',
         'x-flv': 'flv',
         'x-flv': 'flv',
         'x-mp4-fragmented': 'mp4',
         'x-mp4-fragmented': 'mp4',
         'x-ms-wmv': 'wmv',
         'x-ms-wmv': 'wmv',
@@ -2284,11 +2282,11 @@ def mimetype2ext(mt):
         'x-mpegurl': 'm3u8',
         'x-mpegurl': 'm3u8',
         'vnd.apple.mpegurl': 'm3u8',
         'vnd.apple.mpegurl': 'm3u8',
         'dash+xml': 'mpd',
         'dash+xml': 'mpd',
-        'f4m': 'f4m',
         'f4m+xml': 'f4m',
         'f4m+xml': 'f4m',
         'hds+xml': 'f4m',
         'hds+xml': 'f4m',
         'vnd.ms-sstr+xml': 'ism',
         'vnd.ms-sstr+xml': 'ism',
         'quicktime': 'mov',
         'quicktime': 'mov',
+        'mp2t': 'ts',
     }.get(res, res)
     }.get(res, res)