[nhentai] support ',webp' files (#6442)

This commit is contained in:
Mike Fährmann
2024-11-08 17:41:16 +01:00
parent 9e72968154
commit 1ddbcda58b
2 changed files with 14 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ class NhentaiGalleryExtractor(GalleryExtractor):
def images(self, _):
ufmt = ("https://i.nhentai.net/galleries/" +
self.data["media_id"] + "/{}.{}")
extdict = {"j": "jpg", "p": "png", "g": "gif"}
extdict = {"j": "jpg", "p": "png", "g": "gif", "w": "webp"}
return [
(ufmt.format(num, extdict.get(img["t"], "jpg")), {