1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-25 22:00:52 +08:00

[utils] Allow None mimetypes in mimetype2ext

This commit is contained in:
Sergey M․
2016-04-25 00:03:12 +06:00
Unverified
parent a1394b820d
commit eb9ee19422
+3
View File
@@ -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)