A feature-rich command-line audio/video downloader
[utils] Allow None mimetypes in mimetype2ext
Sergey M․eb9ee194221e
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex f333e47127..7bcc85e2b5 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)