Immich: Albumname aus IPTC-Variablen pro Bild ({event}), Fallback-Muster, Vorschau im Upload-Fenster

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-04 00:27:45 +00:00
1 parent 1e72b97164
commit 12f61b5d66
5 files changed
+73 -15

No files matched your search

+8 -1
View File
@@ -158,7 +158,14 @@ struct ImmichSettingsView: View {
TextField("Server-URL", text: $state.settings.immich.serverURL, prompt: Text("https://immich.example.de"))
SecureField("API-Schlüssel (Schlüsselbund)", text: $apiKey)
.onChange(of: apiKey) { _, k in Keychain.set(k, account: ImmichSettings.keychainAccount); state.uploads.resetImmich() }
TextField("Album (leer = keins, wird angelegt)", text: $state.settings.immich.albumName)
TextField("Album", text: $state.settings.immich.albumName, prompt: Text("{event}"))
TextField("Album, wenn kein Ereignis im IPTC", text: $state.settings.immich.albumFallback, prompt: Text("{isodate} {city}"))
Text("Variablen aus IPTC/EXIF pro Bild, z. B. {event}, {headline}, {city}, {sublocation}, {isodate}, {date}, {year4}, {creator}. Fehlende Alben werden angelegt, leer = kein Album.")
.font(.caption).foregroundStyle(.secondary)
if let first = state.selectedItems.first {
LabeledContent("Beispiel (\(first.filename))", value: state.immichAlbum(for: first).isEmpty ? "– kein Album –" : state.immichAlbum(for: first))
.font(.caption)
}
Picker("Dateien", selection: $state.settings.immich.variant) {
ForEach(UploadVariant.allCases, id: \.self) { Text($0.rawValue).tag($0) }
}