Fix: Cannot save photos without creation date

This commit is contained in:
Leon Böttger committed 2026-01-25 21:00:53 +01:00
1 parent d748167f0e
commit 3551c1a006
2 files changed
+8 -8

No files matched your search

@@ -52,7 +52,7 @@
"location" : "https://github.com/leonboe1/LUI.git",
"state" : {
"branch" : "main",
"revision" : "b58913bbbb648ed24babf30bd8bcdff2157d8d84"
"revision" : "2c4c3cfab0bb65ee0f51922eed273f28775fe053"
}
},
{
+7 -7
View File
@@ -40,13 +40,13 @@ struct PhotoManager {
// Extract creation date for image and video
for sourceURL in urls {
if let (type, date) = EXIFUtils.originalDate(from: sourceURL) {
if type == .image {
imageItems.append(ImageItem(fileURL: sourceURL, creationDate: date))
}
if type == .video {
videoItems.append(VideoItem(fileURL: sourceURL, creationDate: date))
}
let (type, date) = EXIFUtils.originalDate(from: sourceURL)
if type == .image {
imageItems.append(ImageItem(fileURL: sourceURL, creationDate: date))
}
if type == .video {
videoItems.append(VideoItem(fileURL: sourceURL, creationDate: date))
}
}