replace 'result' with 'results' for lists

more consistent names
This commit is contained in:
Mike Fährmann
2025-06-30 12:10:57 +02:00
parent 3810555bbd
commit 95338ff0ec
5 changed files with 13 additions and 15 deletions

View File

@@ -80,7 +80,7 @@ class HitomiGalleryExtractor(HitomiExtractor, GalleryExtractor):
fmt = ext = self.config("format") or "webp"
check = (fmt != "webp")
result = []
results = []
for image in self.info["files"]:
if check:
ext = fmt if image.get("has" + fmt) else "webp"
@@ -93,8 +93,8 @@ class HitomiGalleryExtractor(HitomiExtractor, GalleryExtractor):
inum = int(ihash[-1] + ihash[-3:-1], 16)
url = (f"https://{ext[0]}{gg_m.get(inum, gg_default) + 1}."
f"{self.domain}/{gg_b}/{inum}/{ihash}.{ext}")
result.append((url, idata))
return result
results.append((url, idata))
return results
class HitomiTagExtractor(HitomiExtractor):