[hitomi] extract 'extension_original' metadata (#6049)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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" : [],
|
||||
|
||||
Reference in New Issue
Block a user