diff options
| author | 2022-10-17 03:44:04 -0400 | |
|---|---|---|
| committer | 2022-10-17 03:44:04 -0400 | |
| commit | 78e2d1672e4301497f786cd03637de9ddbc717ac (patch) | |
| tree | d74e3d9f54f1982c88feabe84f2804fc00beae5f /gallery_dl/extractor/hitomi.py | |
| parent | b2d8a54ecf4157570d00a8b974a779766822bf4b (diff) | |
New upstream version 1.23.3.upstream/1.23.3
Diffstat (limited to 'gallery_dl/extractor/hitomi.py')
| -rw-r--r-- | gallery_dl/extractor/hitomi.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gallery_dl/extractor/hitomi.py b/gallery_dl/extractor/hitomi.py index f8b0c3b..cc110aa 100644 --- a/gallery_dl/extractor/hitomi.py +++ b/gallery_dl/extractor/hitomi.py @@ -115,12 +115,16 @@ class HitomiGalleryExtractor(GalleryExtractor): fmt = self.config("format") or "webp" if fmt == "original": - subdomain, fmt, ext = "b", "images", None + subdomain, fmt, ext, check = "b", "images", None, False else: - subdomain, ext = "a", fmt + subdomain, ext, check = "a", fmt, True result = [] for image in self.info["files"]: + if check: + if not image.get("has" + fmt): + fmt = ext = "webp" + check = False ihash = image["hash"] idata = text.nameext_from_url(image["name"]) if ext: |
