aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-02-20 22:02:03 +0100
committerremitamine <remitamine@gmail.com>2016-02-20 22:02:03 +0100
commitcafcf657a4e16f0bcf90195f8e35bfcce7faad8e (patch)
treed4b4ffd697459393f72b952a98afdc7495031776 /youtube_dl/utils.py
parent7360db05b43741c2dfa1fd024e9c2f013ed97c9e (diff)
downloadyoutube-dl-cafcf657a4e16f0bcf90195f8e35bfcce7faad8e.tar.xz
add more subtitles mime types to mimetype2ext and fix the platform subtitle extraction
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index a2c6780ca..6978a10e4 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -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',