Stop external subs from being selected when added

This commit is contained in:
Alex Kim
2026-01-12 22:50:36 +11:00
parent a3bbb1bc3a
commit 16940075b2

View File

@@ -380,7 +380,8 @@ final class MPVLayerRenderer {
for (index, subUrl) in pendingExternalSubtitles.enumerated() {
print("🔧 Adding external subtitle [\(index)]: \(subUrl)")
// Use commandSync to ensure subs are added in exact order (not async)
commandSync(handle, ["sub-add", subUrl])
// "auto" flag = add without auto-selecting
commandSync(handle, ["sub-add", subUrl, "auto"])
}
pendingExternalSubtitles = []
// Set subtitle after external subs are added