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:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-11 11:27:45 +00:00
1 parent 223d8b0610
commit 50d03fc4d7
4 files changed
+19 -3

No files matched your search

@@ -12,6 +12,8 @@ public struct ImmichSettings: Codable, Hashable, Sendable {
public var albumFallback: String = "{isodate} {city}"
public var variant: UploadVariant
public var enabled: Bool
/// Off = photos are uploaded into the library only, without any album (patterns stay saved).
public var useAlbum: Bool = true
public init(serverURL: String = "", albumName: String = "", variant: UploadVariant = .jpeg, enabled: Bool = false) {
self.serverURL = serverURL; self.albumName = albumName; self.variant = variant; self.enabled = enabled
@@ -19,7 +21,7 @@ public struct ImmichSettings: Codable, Hashable, Sendable {
public static let keychainAccount = "immich-api-key"
enum CodingKeys: String, CodingKey { case serverURL, albumName, albumFallback, variant, enabled }
enum CodingKeys: String, CodingKey { case serverURL, albumName, albumFallback, variant, enabled, useAlbum }
public init(from decoder: Decoder) throws {
let c = try decoder.container(keyedBy: CodingKeys.self)
@@ -28,6 +30,7 @@ public struct ImmichSettings: Codable, Hashable, Sendable {
albumFallback = (try? c.decode(String.self, forKey: .albumFallback)) ?? "{isodate} {city}"
variant = (try? c.decode(UploadVariant.self, forKey: .variant)) ?? .jpeg
enabled = (try? c.decode(Bool.self, forKey: .enabled)) ?? false
useAlbum = (try? c.decode(Bool.self, forKey: .useAlbum)) ?? true
}
}