exiftool: correct json serialization
All checks were successful
CI / ci (push) Successful in 29s

Closes: #1
This commit is contained in:
Aloïs Micard 2025-02-24 12:13:09 +01:00
parent a506f4714e
commit 10f0668d6a

View file

@ -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))