Move no-images files
This commit is contained in:
parent
85d32849a0
commit
2eca1c6c15
1 changed files with 21 additions and 21 deletions
|
@ -76,6 +76,7 @@ class image_classifier:
|
|||
self.metadata.read()
|
||||
dirname = os.path.dirname(os.path.realpath(file))
|
||||
filename = os.path.basename(file)
|
||||
new_path = False
|
||||
people = self.find_faces(file)
|
||||
if people:
|
||||
self._log.debug(f"Found {len(people)} known people in the image.")
|
||||
|
@ -86,7 +87,6 @@ class image_classifier:
|
|||
self._log.debug(f"People (after): {self.metadata['Xmp.iptcExt.PersonInImage'].raw_value} (type: {type(self.metadata['Xmp.iptcExt.PersonInImage'].raw_value)})")
|
||||
self.metadata.write()
|
||||
self._log.debug(f"Updated file '{file}'.")
|
||||
new_path = False
|
||||
if 'Exif.Photo.DateTimeOriginal' in self.metadata.exif_keys:
|
||||
original_date = self.metadata['Exif.Photo.DateTimeOriginal'].value
|
||||
self._log.debug(f"File creation time: {original_date} (type: {type(original_date)})")
|
||||
|
|
Loading…
Reference in a new issue