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)