1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-24 08:42:30 +00:00

[utils] Allow None mimetypes in mimetype2ext

This commit is contained in:
Sergey M․ 2016-04-25 00:03:12 +06:00
parent a1394b820d
commit eb9ee19422
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -1935,6 +1935,9 @@ def error_to_compat_str(err):
def mimetype2ext(mt): def mimetype2ext(mt):
if mt is None:
return None
ext = { ext = {
'audio/mp4': 'm4a', 'audio/mp4': 'm4a',
}.get(mt) }.get(mt)