diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-04-25 00:03:12 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-25 00:03:12 +0600 |
commit | eb9ee194221e2fb0c260ead7573280fe06d875e8 (patch) | |
tree | e1f8357a9a5201ba586b962e2626de0b5aa51896 | |
parent | a1394b820d1f9004a9e48322bb1a3d99f0377704 (diff) |
[utils] Allow None mimetypes in mimetype2ext
-rw-r--r-- | youtube_dl/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index f333e4712..7bcc85e2b 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1935,6 +1935,9 @@ def error_to_compat_str(err): def mimetype2ext(mt): + if mt is None: + return None + ext = { 'audio/mp4': 'm4a', }.get(mt) |