wip
This commit is contained in:
parent
1b9f031590
commit
0fbb347028
@ -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"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user