[comick] give 'w', 'h', and 's' more descriptive names (#6782)

This commit is contained in:
Mike Fährmann
2025-06-25 14:01:48 +02:00
parent 41ae7695c4
commit a50901c460
2 changed files with 14 additions and 8 deletions

View File

@@ -28,12 +28,6 @@ class ComickBase():
props = data["props"]["pageProps"]
comic = props["comic"]
map_status = {
0: "Unknown",
1: "Ongoing",
2: "Complete",
}
genre = []
theme = []
format = ""
@@ -76,7 +70,7 @@ class ComickBase():
"rating": comic["content_rating"],
"rank" : comic["follow_rank"],
"score" : text.parse_float(comic["bayesian_rating"]),
"status": map_status[comic["status"]],
"status": "Complete" if comic["status"] == 2 else "Ongoing",
"links" : comic["links"],
"_build_id": data["buildId"],
}
@@ -125,7 +119,12 @@ class ComickChapterExtractor(ComickBase, ChapterExtractor):
def images(self, page):
return [
("https://meo.comick.pictures/" + img["b2key"], img)
("https://meo.comick.pictures/" + img["b2key"], {
"width" : img["w"],
"height" : img["h"],
"size" : img["s"],
"optimized": img["optimized"],
})
for img in self._images
]