Vereins-Variablen für Immich-Album und Umbenennen
{vereina}/{vereinb} (= {home}/{away}, {heim}/{gast}), {homeshort}/{awayshort}, {competition}, {round},
{season} … aus dem Spieltag des Bildes oder aus dem IPTC-Ereignis („Liga: A - B“). Gilt für das
Immich-Album und das FTP-Umbenennungsmuster, z. B. „{vereina} - {vereinb} | {date}“.
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
3a2c8253ac
commit
fff701674a
5 files changed
+62
-3
No files matched your search
@@ -134,8 +134,9 @@ final class UploadQueue: ObservableObject {
|
||||
let src = sourceItems.first { $0.primary == f || $0.companions.contains(f) }
|
||||
var remote = f.lastPathComponent
|
||||
if !pattern.isEmpty {
|
||||
let ctx = VariableContext.make(fileURL: f, exif: src?.exif ?? [:], iptc: src?.iptc ?? IPTCValues(),
|
||||
var ctx = VariableContext.make(fileURL: f, exif: src?.exif ?? [:], iptc: src?.iptc ?? IPTCValues(),
|
||||
dateFormat: state.settings.dateFormat)
|
||||
if let src { ctx.values.merge(state.matchVariables(for: src)) { iptc, _ in iptc } }
|
||||
remote = VariableExpander.expand(pattern, context: ctx)
|
||||
.replacingOccurrences(of: "/", with: "-") + "." + f.pathExtension.lowercased()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user