1
0
This commit is contained in:
= 2024-11-22 22:36:00 -05:00
parent 1b9f031590
commit 0fbb347028

View File

@ -1,11 +1,10 @@
#!/usr/bin/env python
import time
from time import struct_time
from os import getenv
import signal
import sys
import json
from os import getenv
from pathlib import Path
from PIL import Image, ExifTags, UnidentifiedImageError
@ -108,7 +107,7 @@ def sort_photos(photo_list: list[Path], ignored_files: list[str]) -> list[str]:
continue
# Format the date
if exif[ExifTags.Base.DateTimeOriginal] is not None and exif[ExifTags.Base.DateTimeOriginal] != '':
image_timestamp: struct_time = time.strptime(
image_timestamp = time.strptime(
data_string = exif[ExifTags.Base.DateTimeOriginal],
format = "%Y:%m:%d %H:%M:%S"
)