1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

always provide lowercase fileextensions

This commit is contained in:
Mike Fährmann 2015-11-16 17:40:05 +01:00
parent 7547d8be3f
commit 7fd284a705
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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):