Reimplement coherent updating

This commit is contained in:
RatzzFatzz
2025-12-15 02:39:44 +01:00
parent 80c46508b8
commit a51922968e
13 changed files with 260 additions and 167 deletions

View File

@@ -24,7 +24,7 @@ public class FileInfo {
@Getter(AccessLevel.NONE)
private final List<TrackAttributes> subtitleTracks = new ArrayList<>();
private final PlannedChange changes = new PlannedChange();
private PlannedChange changes = new PlannedChange();
@Setter
private AttributeConfig matchedConfig;
@@ -50,6 +50,10 @@ public class FileInfo {
return Collections.unmodifiableList(subtitleTracks);
}
public void resetChanges() {
changes = new PlannedChange();
}
public FileStatus getStatus() {
if (!changes.isEmpty()) return FileStatus.CHANGE_NECESSARY;
if (matchedConfig == null) return FileStatus.NO_SUITABLE_CONFIG;