Changed CSV variable, only write Exif tags that hava values to fill in.
This commit is contained in:
@@ -61,7 +61,9 @@ class Photo:
|
||||
|
||||
# Create metadata object with all data to write
|
||||
for key, value in zip(keys, values):
|
||||
metadata[key] = pyexiv2.ExifTag(key, value)
|
||||
# Only create object if there is anything to fill with
|
||||
if value is not None:
|
||||
metadata[key] = pyexiv2.ExifTag(key, value)
|
||||
|
||||
# Write Exif tags to file, if not in dry-run mode
|
||||
if dry_run == 'True':
|
||||
|
Reference in New Issue
Block a user