Add a preference to overwrite or not existing metadata

This commit is contained in:
Damiano Galassi committed 2026-09-11 09:52:03 +02:00
1 parent 6c124ca5d0
commit beb7774761
7 files changed
+36 -18

No files matched your search

+5 -1
View File
@@ -170,7 +170,8 @@ enum MetadataPrefs {
_movieImporter, _movieiTunesStoreLanguage,
_tvShowImporter, _tvShowiTunesStoreLanguage,
_tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage,
_keepEmptyAnnotations, _keepImportedFilesMetadata])
_keepEmptyAnnotations, _overwriteExistingAnnotations,
_keepImportedFilesMetadata])
}
@StoredCodable(key: "SBMovieFormatTokens", defaultValue: [Token(text: "{Name}")])
@@ -219,6 +220,9 @@ enum MetadataPrefs {
@Stored(key: "SBMetadataKeepEmptyAnnotations", defaultValue: false)
static var keepEmptyAnnotations: Bool
@Stored(key: "SBMetadataOverwriteExistingAnnotations", defaultValue: true)
static var overwriteExistingAnnotations: Bool
@Stored(key: "SBFileImporterImportMetadata", defaultValue: false)
static var keepImportedFilesMetadata: Bool
}