mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-20 05:16:02 +00:00
Fix: Cannot save photos without creation date
This commit is contained in:
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",
|
"location" : "https://github.com/leonboe1/LUI.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "main",
|
"branch" : "main",
|
||||||
"revision" : "b58913bbbb648ed24babf30bd8bcdff2157d8d84"
|
"revision" : "2c4c3cfab0bb65ee0f51922eed273f28775fe053"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,13 +40,13 @@ struct PhotoManager {
|
|||||||
|
|
||||||
// Extract creation date for image and video
|
// Extract creation date for image and video
|
||||||
for sourceURL in urls {
|
for sourceURL in urls {
|
||||||
if let (type, date) = EXIFUtils.originalDate(from: sourceURL) {
|
let (type, date) = EXIFUtils.originalDate(from: sourceURL)
|
||||||
if type == .image {
|
|
||||||
imageItems.append(ImageItem(fileURL: sourceURL, creationDate: date))
|
if type == .image {
|
||||||
}
|
imageItems.append(ImageItem(fileURL: sourceURL, creationDate: date))
|
||||||
if type == .video {
|
}
|
||||||
videoItems.append(VideoItem(fileURL: sourceURL, creationDate: date))
|
if type == .video {
|
||||||
}
|
videoItems.append(VideoItem(fileURL: sourceURL, creationDate: date))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user