summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/common.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-01-21 01:08:43 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-01-21 01:08:43 -0500
commit4366125d2580982abb57bc65a26fc1fb8ef2a5df (patch)
tree743a26348e360c8b7f5eb89d4f704b015e902e68 /gallery_dl/extractor/common.py
parentbc435e826dbe37969d9cbe280f58810d054932cc (diff)
New upstream version 1.12.3upstream/1.12.3
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"""