]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/utils.py
[utils] Add more items to mimetype2ext (#8293)
[youtube-dl] / youtube_dl / utils.py
index da4ec7f209a4d0dfbad84254ee51914c3fadc270..178d1dcb353c9cb68c874f6203a9f488250bf122 100644 (file)
@@ -984,7 +984,7 @@ def date_from_str(date_str):
         if sign == '-':
             time = -time
         unit = match.group('unit')
-        # A bad aproximation?
+        # A bad approximation?
         if unit == 'month':
             unit = 'day'
             time *= 30
@@ -1307,7 +1307,7 @@ def parse_filesize(s):
     if s is None:
         return None
 
-    # The lower-case forms are of course incorrect and inofficial,
+    # The lower-case forms are of course incorrect and unofficial,
     # but we support those too
     _UNIT_TABLE = {
         'B': 1,
@@ -1831,6 +1831,8 @@ def mimetype2ext(mt):
         'x-ms-wmv': 'wmv',
         'x-mp4-fragmented': 'mp4',
         'ttml+xml': 'ttml',
+        '3gpp': '3gp',
+        'x-flv': 'flv',
     }.get(res, res)