From 725af5532cb6718cf93363e2f0f8d8113f0c059a Mon Sep 17 00:00:00 2001 From: Edward Nash Date: Mon, 20 Apr 2020 07:19:45 +0200 Subject: [PATCH] Try and recognise generated zip files * Appears to solve problem addressed by PR #6 --- inspireatomclientdialog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inspireatomclientdialog.py b/inspireatomclientdialog.py index e8b366f..eea2519 100644 --- a/inspireatomclientdialog.py +++ b/inspireatomclientdialog.py @@ -709,7 +709,9 @@ def buildfilename(self, url): else: # TODO: use Mime-Type extension = "ext" - if url.lower().find("tif") > -1: + if url.lower().find("zip") > -1: + extension = "zip" + elif url.lower().find("tif") > -1: extension = "tiff" elif url.lower().find("gml") > -1: extension = "gml"