Skip to content

Commit 0fc442b

Browse files
committed
2.4.007
1 parent 2aa8d8e commit 0fc442b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
9595
<details><summary>List all subcommands</summary>
9696

9797
$ library
98-
xk media library subcommands (v2.4.006)
98+
xk media library subcommands (v2.4.007)
9999

100100
Create database subcommands:
101101
╭───────────────┬────────────────────────────────────────────────────╮

xklb/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.4.006"
1+
__version__ = "2.4.007"

xklb/media/books.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,12 @@ def extract_image_metadata_chunk(metadata: List[dict]) -> List[dict]:
235235
raise
236236

237237
chunk_paths = [d["path"] for d in metadata]
238-
with exiftool.ExifToolHelper() as et:
239-
exif = et.get_metadata(chunk_paths)
238+
try:
239+
with exiftool.ExifToolHelper() as et:
240+
exif = et.get_metadata(chunk_paths)
241+
except exiftool.exceptions.ExifToolExecuteError:
242+
log.exception("exifTool failed executing get_metadata %s", metadata)
243+
return metadata
240244

241245
exif_enriched = []
242246
for m, e in zip(metadata, exif):

0 commit comments

Comments
 (0)