diff options
| author | 2020-01-21 01:08:44 -0500 | |
|---|---|---|
| committer | 2020-01-21 01:08:44 -0500 | |
| commit | 025429729005792ae1ac2041ec45c117fe69402b (patch) | |
| tree | 24c0ee8c5c50d6833e37853936c08c624f6e0d11 /gallery_dl/extractor/common.py | |
| parent | 6428f3de38d530420353623d3553911e54f26d50 (diff) | |
| parent | 4366125d2580982abb57bc65a26fc1fb8ef2a5df (diff) | |
Update upstream source from tag 'upstream/1.12.3'
Update to upstream version '1.12.3'
with Debian dir 480cf02c985b30e09534326667875dc02ee11608
Diffstat (limited to 'gallery_dl/extractor/common.py')
| -rw-r--r-- | gallery_dl/extractor/common.py | 6 |
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""" |
