From 10f0668d6a83836c6d60cf3fbd37d4126f0ce47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Mon, 24 Feb 2025 12:13:09 +0100 Subject: [PATCH] exiftool: correct json serialization Closes: #1 --- exif_database/exiftool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exif_database/exiftool.py b/exif_database/exiftool.py index caad3de..48419da 100644 --- a/exif_database/exiftool.py +++ b/exif_database/exiftool.py @@ -1,7 +1,7 @@ """ exif-database.exiftool: Python wrapper around exiftool(1) """ - +import json import subprocess import sys from datetime import datetime @@ -122,4 +122,4 @@ def execute_exiftool(img_file: str) -> dict: if __name__ == '__main__': - print(execute_exiftool(sys.argv[1])) + print(json.dumps(execute_exiftool(sys.argv[1]), default=str))