Immich: Upload ohne Album möglich
Schalter „In Album einsortieren / Ohne Album“ im Upload-Fenster (⌘U, Ziel Immich) und in den Einstellungen. Ohne Album landen die Bilder nur in der Bibliothek; die Album-Muster bleiben gespeichert. 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
223d8b0610
commit
50d03fc4d7
4 files changed
+19
-3
No files matched your search
@@ -225,8 +225,12 @@ 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() }
|
||||
Toggle("Bilder in ein Album einsortieren", isOn: $state.settings.immich.useAlbum)
|
||||
.help("Aus: Bilder landen nur in der Immich-Bibliothek, ohne Album")
|
||||
TextField("Album", text: $state.settings.immich.albumName, prompt: Text("{event}"))
|
||||
.disabled(!state.settings.immich.useAlbum)
|
||||
TextField("Album, wenn kein Ereignis im IPTC", text: $state.settings.immich.albumFallback, prompt: Text("{isodate} {city}"))
|
||||
.disabled(!state.settings.immich.useAlbum)
|
||||
Text("Variablen aus IPTC/EXIF pro Bild, z. B. {event}, {headline}, {city}, {sublocation}, {isodate}, {date}, {year4}, {creator}. Vereine: {vereina} - {vereinb} (= {home}/{away}, kurz {homeshort}/{awayshort}), dazu {competition}, {round}, {season} – aus dem Spieltag oder dem Ereignis. Beispiel: {vereina} - {vereinb} | {date}. Fehlende Alben werden angelegt, leer = kein Album.")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
if let first = state.selectedItems.first {
|
||||
|
||||
@@ -96,8 +96,15 @@ struct UploadWindow: View {
|
||||
} else if target == "immich" {
|
||||
LKSectionLabel(title: "Optionen").padding(.top, 4)
|
||||
VStack(spacing: 0) {
|
||||
optionRow("Album-Muster") {
|
||||
TextField("{event}", text: $state.settings.immich.albumName).textFieldStyle(.plain).lkField()
|
||||
optionRow("Album") {
|
||||
LKSegmented(options: [(true, "In Album einsortieren"), (false, "Ohne Album")],
|
||||
selection: $state.settings.immich.useAlbum)
|
||||
}
|
||||
if state.settings.immich.useAlbum {
|
||||
divider
|
||||
optionRow("Album-Muster") {
|
||||
TextField("{event}", text: $state.settings.immich.albumName).textFieldStyle(.plain).lkField()
|
||||
}
|
||||
}
|
||||
divider
|
||||
optionRow("Dateien") {
|
||||
@@ -163,6 +170,7 @@ struct UploadWindow: View {
|
||||
}
|
||||
|
||||
private var albumPreview: String {
|
||||
guard state.settings.immich.useAlbum else { return "ohne Album" }
|
||||
let albums = Set(state.selectedItems.map { state.immichAlbum(for: $0) }.filter { !$0.isEmpty })
|
||||
return albums.isEmpty ? "kein Album" : "Album: " + albums.sorted().joined(separator: ", ")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user