@mkterswingman/5mghost-yonder 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/subtitles.js +4 -4
- package/package.json +1 -1
package/dist/tools/subtitles.js
CHANGED
|
@@ -596,13 +596,13 @@ export function registerSubtitleTools(server, config, tokenManager) {
|
|
|
596
596
|
let section = "none";
|
|
597
597
|
for (const line of output.split("\n")) {
|
|
598
598
|
const trimmed = line.trim();
|
|
599
|
-
if (trimmed.
|
|
600
|
-
trimmed.
|
|
599
|
+
if (trimmed.startsWith("[info] Available subtitles") ||
|
|
600
|
+
trimmed.startsWith("Available subtitles")) {
|
|
601
601
|
section = "manual";
|
|
602
602
|
continue;
|
|
603
603
|
}
|
|
604
|
-
if (trimmed.
|
|
605
|
-
trimmed.
|
|
604
|
+
if (trimmed.startsWith("[info] Available automatic captions") ||
|
|
605
|
+
trimmed.startsWith("Available automatic captions")) {
|
|
606
606
|
section = "auto";
|
|
607
607
|
continue;
|
|
608
608
|
}
|