Implemented efficient re-exporting

This commit is contained in:
patben8 committed 2026-09-28 20:44:14 +02:00
1 parent 3a9dc90344
commit bb9f6e2bd3
14 files changed
+727 -63

No files matched your search

+2 -2
View File
@@ -309,7 +309,7 @@ seen: list[str] = []
wf_written = core_export.for_platform("onelibrary").write(
ExportPayload(name="WF", tracks=[ExportTrack(track=dead_t, destination=dead, cues=grid),
ExportTrack(track=live_t, destination=live, cues=grid)],
checkpoint=seen.append),
checkpoint=lambda m, **_progress: seen.append(m)),
wf_root,
)
dats = [p for p in wf_written.extra if p.suffix == ".DAT"]
@@ -371,7 +371,7 @@ class _Stop(Exception):
pass
def _cancel_on_second(message: str, calls=[]): # noqa: B006 — deliberate counter
def _cancel_on_second(message: str, calls=[], **_progress): # noqa: B006 — deliberate counter
calls.append(message)
if len(calls) == 2:
raise _Stop()