style: restore repo formatting

This commit is contained in:
2026-03-09 18:10:32 -07:00
parent a34a7489db
commit fed60c265d
85 changed files with 641 additions and 143 deletions

View File

@@ -38,7 +38,10 @@ export function getDefaultMpvLogFile(options?: {
const homeDir = options?.homeDir ?? os.homedir();
const baseDir =
platform === 'win32'
? path.join(options?.appDataDir?.trim() || path.join(homeDir, 'AppData', 'Roaming'), 'SubMiner')
? path.join(
options?.appDataDir?.trim() || path.join(homeDir, 'AppData', 'Roaming'),
'SubMiner',
)
: path.join(homeDir, '.config', 'SubMiner');
return path.join(baseDir, 'logs', `SubMiner-${new Date().toISOString().slice(0, 10)}.log`);
}

View File

@@ -66,7 +66,9 @@ function resolveExecutablePath(command: string): string | null {
if (isPathLikeCommand(command)) {
const resolved = path.resolve(resolvePathMaybe(command));
return process.platform === 'win32' ? resolveWindowsCandidate(resolved) : tryCandidate(resolved);
return process.platform === 'win32'
? resolveWindowsCandidate(resolved)
: tryCandidate(resolved);
}
const pathEnv = getPathEnv();

View File

@@ -235,8 +235,7 @@ export async function generateYoutubeSubtitles(
failureMessage: 'Fallback audio extraction failed',
log: (level, message) => log(level, args.logLevel, message),
},
() =>
downloadYoutubeAudio(target, args, tempDir, state.youtubeSubgenChildren),
() => downloadYoutubeAudio(target, args, tempDir, state.youtubeSubgenChildren),
);
const whisperAudioPath = await runLoggedYoutubePhase(
{