From 7fd284a7057087485e2a541b9e6c13fe8ddfb2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 16 Nov 2015 17:40:05 +0100 Subject: [PATCH] always provide lowercase fileextensions --- gallery_dl/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/text.py b/gallery_dl/text.py index 44c6a8ab..b1c42719 100644 --- a/gallery_dl/text.py +++ b/gallery_dl/text.py @@ -34,7 +34,7 @@ def nameext_from_url(url, data=None): data = {} data["filename"] = unquote(filename_from_url(url)) data["name"], ext = os.path.splitext(data["filename"]) - data["extension"] = ext[1:] + data["extension"] = ext[1:].lower() return data def clean_path_windows(path):