Merge branch 'cocciasecca-master'

Added deleted posts handling
This commit is contained in:
lmluk
2024-09-30 11:50:59 +02:00

View File

@@ -97,6 +97,8 @@ class BeRealExporter:
Makes a copy of the image and adds EXIF tags to the image. Makes a copy of the image and adds EXIF tags to the image.
""" """
self.verbose_msg(f"Export {old_img_name} image to {img_name}") self.verbose_msg(f"Export {old_img_name} image to {img_name}")
if os.path.isfile(old_img_name):
cp(old_img_name, img_name) cp(old_img_name, img_name)
tags = {"DateTimeOriginal": img_dt.strftime("%Y:%m:%d %H:%M:%S")} tags = {"DateTimeOriginal": img_dt.strftime("%Y:%m:%d %H:%M:%S")}
if img_location: if img_location:
@@ -112,6 +114,8 @@ class BeRealExporter:
et(executable=self.exiftool_path).set_tags(img_name, tags=tags, params=["-P", "-overwrite_original"]) et(executable=self.exiftool_path).set_tags(img_name, tags=tags, params=["-P", "-overwrite_original"])
else: else:
et().set_tags(img_name, tags=tags, params=["-P", "-overwrite_original"]) et().set_tags(img_name, tags=tags, params=["-P", "-overwrite_original"])
else:
self.verbose_msg(f"File {old_img_name} not found. Skipping this image.")
def export_memories(self, memories: list): def export_memories(self, memories: list):