Review-Korrekturen zu „Kartenimport, Metadaten und Versand absichern“
- Ingest-Verlauf wieder wie PM: Name + Größe + Datum, unabhängig von Ziel und Ordnermuster. Beim Sichten gelöschte Fotos kommen nicht zurück, neuer Spieltags-Ordner importiert keine alte Karte erneut, keine SHA-256-Prüfsumme mehr über die ganze Karte. Alter Verlauf (ingest-history.json) gilt wieder. Schutz vor Namenskollisionen, Rollback und Backup-Prüfung bleiben. - FTP: „Vorhandene Datei auf dem Server ersetzen“ (wie PM, Standard an) – Korrekturen lassen sich erneut senden, kein Auflisten des Server-Ordners vor jeder Datei. Aus = Upload stoppt bei belegtem Namen. - LR-Export: Pfadabgleich unabhängig von Unicode-Schreibweise (Umlaute), Groß/Klein und Symlinks - Ordner-Scan: einzelne unlesbare oder verschwundene Dateien werden übersprungen statt alles abzubrechen - Agentur-Check: Mindestgröße nur für die gelieferten Bilder, RAWs blockieren nicht; Senden nutzt die aktuellen Bilddaten - Datum ohne Uhrzeit lässt IPTC TimeCreated stehen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
1 parent
427b6fa7b0
commit
c9d43aba9c
11 files changed
+91
-129
No files matched your search
@@ -1088,17 +1088,22 @@ final class AppState: ObservableObject {
|
||||
}
|
||||
}
|
||||
|
||||
/// Path key for matching LR's source paths: symlinks resolved, Unicode precomposed (LR may report
|
||||
/// "Köln" decomposed), case-insensitive like APFS.
|
||||
static func exportKey(_ url: URL) -> String {
|
||||
url.resolvingSymlinksInPath().standardizedFileURL.path.precomposedStringWithCanonicalMapping.lowercased()
|
||||
}
|
||||
|
||||
/// After LR export: re-apply the original IPTC (PM-identical structure) and upload.
|
||||
private func handleExported(_ result: LightroomJobResult, job: LightroomJob, sources jobSources: [PhotoItem]) async {
|
||||
let sources = Dictionary(jobSources.map { original in
|
||||
let path = (original.rawFile ?? original.primary).standardizedFileURL.path
|
||||
return (path, item(original.id) ?? original)
|
||||
return (Self.exportKey(original.rawFile ?? original.primary), item(original.id) ?? original)
|
||||
}, uniquingKeysWith: { first, _ in first })
|
||||
let writer = job.rewriteIPTCAfterExport ? self.writer : nil
|
||||
var exportedItems: [PhotoItem] = []
|
||||
var missingSources = 0
|
||||
for file in result.exported {
|
||||
guard let path = result.exportSources[file]?.standardizedFileURL.path, let source = sources[path] else {
|
||||
guard let src = result.exportSources[file], let source = sources[Self.exportKey(src)] else {
|
||||
missingSources += 1
|
||||
continue
|
||||
}
|
||||
@@ -1240,7 +1245,8 @@ final class AppState: ObservableObject {
|
||||
guard p.variant == variant else { recheckPendingUpload(); return }
|
||||
discardPendingUpload()
|
||||
guard !send.isEmpty else { return }
|
||||
enqueueUpload(send, target: p.target, variant: variant)
|
||||
// current metadata (captions may have been fixed after the check) for rename patterns / albums
|
||||
enqueueUpload(send.map { item($0.id) ?? $0 }, target: p.target, variant: variant)
|
||||
}
|
||||
|
||||
func discardPendingUpload() {
|
||||
|
||||
Reference in new issue
Block a user