mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Stop external subs from being selected when added
This commit is contained in:
@@ -380,7 +380,8 @@ final class MPVLayerRenderer {
|
|||||||
for (index, subUrl) in pendingExternalSubtitles.enumerated() {
|
for (index, subUrl) in pendingExternalSubtitles.enumerated() {
|
||||||
print("🔧 Adding external subtitle [\(index)]: \(subUrl)")
|
print("🔧 Adding external subtitle [\(index)]: \(subUrl)")
|
||||||
// Use commandSync to ensure subs are added in exact order (not async)
|
// 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 = []
|
pendingExternalSubtitles = []
|
||||||
// Set subtitle after external subs are added
|
// Set subtitle after external subs are added
|
||||||
|
|||||||
Reference in New Issue
Block a user