X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/4b7d905ec23e1190bcb65a3041816e07f2663d9b..47e940089d73e13a8f7f1d12344c2eb9bcaa3454:/images.py?ds=inline diff --git a/images.py b/images.py index d9926a3..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) + base = os.path.basename(url).replace('%', '').split('?')[0] if base not in self._filenames: return base stem, ext = os.path.splitext(base)