From 6af26a424aaef378f3792917c188f10fb7d7e2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 18 Aug 2024 12:56:50 +0200 Subject: [PATCH] [hitomi] extract 'extension_original' metadata (#6049) --- gallery_dl/extractor/hitomi.py | 1 + test/results/hitomi.py | 1 + 2 files changed, 2 insertions(+) diff --git a/gallery_dl/extractor/hitomi.py b/gallery_dl/extractor/hitomi.py index 9b747005..18df9dfa 100644 --- a/gallery_dl/extractor/hitomi.py +++ b/gallery_dl/extractor/hitomi.py @@ -89,6 +89,7 @@ class HitomiGalleryExtractor(GalleryExtractor): path = ext = "webp" ihash = image["hash"] idata = text.nameext_from_url(image["name"]) + idata["extension_original"] = idata["extension"] if ext: idata["extension"] = ext diff --git a/test/results/hitomi.py b/test/results/hitomi.py index 5f1b9e36..78fa0799 100644 --- a/test/results/hitomi.py +++ b/test/results/hitomi.py @@ -20,6 +20,7 @@ __tests__ = ( "count" : 16, "date" : "dt:2015-10-27 19:20:00", "extension" : "webp", + "extension_original" : "jpg", "filename" : str, "gallery_id": 867789, "group" : [],