youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit eb9ee194221e2fb0c260ead7573280fe06d875e8
parent a1394b820d1f9004a9e48322bb1a3d99f0377704
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 25 Apr 2016 00:03:12 +0600

[utils] Allow None mimetypes in mimetype2ext

Diffstat:
Myoutube_dl/utils.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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)