mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 17:01:25 -07:00
Fix Windows mpv logging and add log export (#88)
This commit is contained in:
1 parent
43ebc7d371
commit
11c196821d
150 files changed
+2748
-582
No files matched your search
@@ -142,6 +142,10 @@ export async function loadYomitanExtension(
|
||||
}
|
||||
|
||||
targetSession = session.fromPath(resolvedProfilePath);
|
||||
logger.info('Loading Yomitan extension from external profile', {
|
||||
profilePath: resolvedProfilePath,
|
||||
extensionPath: extPath,
|
||||
});
|
||||
} else {
|
||||
const searchPaths = getYomitanExtensionSearchPaths({
|
||||
explicitPath: deps.extensionPath,
|
||||
@@ -174,6 +178,10 @@ export async function loadYomitanExtension(
|
||||
logger.debug(`Copied yomitan extension to ${extensionCopy.targetDir}`);
|
||||
}
|
||||
extPath = extensionCopy.targetDir;
|
||||
logger.info('Loading bundled Yomitan extension', {
|
||||
extensionPath: extPath,
|
||||
copied: extensionCopy.copied,
|
||||
});
|
||||
}
|
||||
|
||||
clearParserState();
|
||||
@@ -191,6 +199,12 @@ export async function loadYomitanExtension(
|
||||
}),
|
||||
);
|
||||
deps.setYomitanExtension(extension);
|
||||
logger.info('Yomitan extension loaded', {
|
||||
extensionId: extension.id,
|
||||
extensionName: extension.name,
|
||||
extensionPath: extPath,
|
||||
externalProfile: externalProfilePath.length > 0,
|
||||
});
|
||||
return extension;
|
||||
} catch (err) {
|
||||
logger.error('Failed to load Yomitan extension:', (err as Error).message);
|
||||
|
||||
Reference in new issue
Block a user