Jellyfin and Subsync Fixes (#13)

This commit is contained in:
sudacode authored and GitHub committed 2026-03-01 16:13:16 -08:00
1 parent 49434bf0cd
commit 7023a3263f
36 files changed
+2001 -60

No files matched your search

+22
View File
@@ -658,6 +658,28 @@ export function runAppCommandWithInherit(appPath: string, appArgs: string[]): ne
process.exit(result.status ?? 0);
}
export function runAppCommandCaptureOutput(
appPath: string,
appArgs: string[],
): {
status: number;
stdout: string;
stderr: string;
error?: Error;
} {
const result = spawnSync(appPath, appArgs, {
env: buildAppEnv(),
encoding: 'utf8',
});
return {
status: result.status ?? 1,
stdout: result.stdout ?? '',
stderr: result.stderr ?? '',
error: result.error ?? undefined,
};
}
export function runAppCommandWithInheritLogged(
appPath: string,
appArgs: string[],