From 4366125d2580982abb57bc65a26fc1fb8ef2a5df Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 21 Jan 2020 01:08:43 -0500 Subject: New upstream version 1.12.3 --- gallery_dl/extractor/common.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gallery_dl/extractor/common.py') 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""" -- cgit v1.2.3