From dd8236e73315a0353d828fcf89e2de8c8377b172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 30 Sep 2016 16:41:49 +0200 Subject: [PATCH] enable non-standard MIME types --- gallery_dl/downloader/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py index f6936028..9367521f 100644 --- a/gallery_dl/downloader/http.py +++ b/gallery_dl/downloader/http.py @@ -50,7 +50,7 @@ class Downloader(BasicDownloader): if not pathfmt.has_extension: # set 'extension' keyword from Content-Type header mtype = response.headers.get("Content-Type", "image/jpeg") - extensions = mimetypes.guess_all_extensions(mtype) + extensions = mimetypes.guess_all_extensions(mtype, strict=False) extensions.sort() pathfmt.set_extension(extensions[-1][1:]) if pathfmt.exists():