From 8392eca7de3775fc6cfc99a21dfb027d1280bcdb Mon Sep 17 00:00:00 2001 From: vlucet Date: Wed, 22 Nov 2023 01:00:00 -0500 Subject: [PATCH] test --- mdtools/readexif.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mdtools/readexif.py b/mdtools/readexif.py index 2f9cf50..04c8317 100644 --- a/mdtools/readexif.py +++ b/mdtools/readexif.py @@ -46,6 +46,8 @@ def read_exif_from_md(md_result: MDResult or str, tags: list = DEFAULT_TAGS, base_name_out = os.path.join(os.path.dirname(md_result), folder) name_out = base_name_out + "_exif.csv" + print(base_path) + elif isinstance(md_result, MDResult): md = md_result.md_data @@ -63,6 +65,8 @@ def read_exif_from_md(md_result: MDResult or str, tags: list = DEFAULT_TAGS, filenames = [os.path.join(base_path, img["file"]) for img in batch] + print(filenames[0]) + with exiftool.ExifToolHelper() as et: tags_data = [et.get_tags(filename, tags)[0]