fix(reenrich): preserve release identity in batch actions

This commit is contained in:
zarzet
2026-07-26 12:28:00 +07:00
parent b93ebc1e8d
commit 5f5186a23e
8 changed files with 41 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
enum ReEnrichOperationScope { singleFile, batch }
/// A single-file action may deliberately repair a stale release identity,
/// such as a playlist name stored in the album tag. Batch matching keeps the
/// conservative album-mismatch guard because one false match has a much larger
/// blast radius.
bool allowsReleaseIdentityReplacement(ReEnrichOperationScope scope) =>
scope == ReEnrichOperationScope.singleFile;