Update phototemplate.py

Fix for non-str values in exiftool template (#409)
This commit is contained in:
Rhet Turnbull 2021-03-30 07:51:34 -06:00 committed by GitHub
parent 9c9e73ba96
commit d17454772c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -918,6 +918,7 @@ class PhotoTemplate:
if subfield in exifdict:
values = exifdict[subfield]
values = [values] if not isinstance(values, list) else values
values = [str(v) for v in values]
# sanitize directory names if needed
if filename: