summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/common.py')
-rw-r--r--gallery_dl/extractor/common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py
index 380bcc7..55b15d4 100644
--- a/gallery_dl/extractor/common.py
+++ b/gallery_dl/extractor/common.py
@@ -344,7 +344,11 @@ class GalleryExtractor(Extractor):
for data[self.enum], (url, imgdata) in images:
if imgdata:
data.update(imgdata)
- yield Message.Url, url, text.nameext_from_url(url, data)
+ if "extension" not in imgdata:
+ text.nameext_from_url(url, data)
+ else:
+ text.nameext_from_url(url, data)
+ yield Message.Url, url, data
def login(self):
"""Login and set necessary cookies"""