Enhance filesystem.process_file get_metadata cache performance. (#353)
Reduce exiftool calls by using a metadata object cache. Enable single exiftool subprocess to elimate spawing exiftool for each image.
This commit is contained in:
parent
b07d26c389
commit
afacb969e8
|
@ -589,7 +589,7 @@ class FileSystem(object):
|
|||
# before we made any changes.
|
||||
# Then set the utime on the destination file based on metadata.
|
||||
os.utime(_file, (stat_info_original.st_atime, stat_info_original.st_mtime))
|
||||
self.set_utime_from_metadata(media.get_metadata(), dest_path)
|
||||
self.set_utime_from_metadata(metadata, dest_path)
|
||||
|
||||
db = Db()
|
||||
db.add_hash(checksum, dest_path)
|
||||
|
|
Loading…
Reference in New Issue