From a8a47f7846509d22b123f4ab9cfdd7e65ac0d32e Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 28 Dec 2023 22:46:59 -0800 Subject: [PATCH 1/1] image filenames: Drop ? and following query parameters --- images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images.py b/images.py index 68a9696..7932091 100644 --- a/images.py +++ b/images.py @@ -32,7 +32,7 @@ class DiskImageStore(ImageStore): def _filename(self, url: str) -> str: assert url not in self._images - base = os.path.basename(url).replace('%', '') + base = os.path.basename(url).replace('%', '').split('?')[0] if base not in self._filenames: return base stem, ext = os.path.splitext(base) -- 2.44.1