[hitomi] extract 'extension_original' metadata (#6049)
This commit is contained in:
@@ -89,6 +89,7 @@ class HitomiGalleryExtractor(GalleryExtractor):
|
|||||||
path = ext = "webp"
|
path = ext = "webp"
|
||||||
ihash = image["hash"]
|
ihash = image["hash"]
|
||||||
idata = text.nameext_from_url(image["name"])
|
idata = text.nameext_from_url(image["name"])
|
||||||
|
idata["extension_original"] = idata["extension"]
|
||||||
if ext:
|
if ext:
|
||||||
idata["extension"] = ext
|
idata["extension"] = ext
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ __tests__ = (
|
|||||||
"count" : 16,
|
"count" : 16,
|
||||||
"date" : "dt:2015-10-27 19:20:00",
|
"date" : "dt:2015-10-27 19:20:00",
|
||||||
"extension" : "webp",
|
"extension" : "webp",
|
||||||
|
"extension_original" : "jpg",
|
||||||
"filename" : str,
|
"filename" : str,
|
||||||
"gallery_id": 867789,
|
"gallery_id": 867789,
|
||||||
"group" : [],
|
"group" : [],
|
||||||
|
|||||||
Reference in New Issue
Block a user