refactor(core): normalize service naming across app runtime

This commit is contained in:
sudacode committed 2026-02-17 19:00:27 -08:00
1 parent e38a1c945e
commit 1233e3630f
87 files changed
+2813 -1636

No files matched your search

+5 -2
View File
@@ -239,7 +239,8 @@ export function parseMediaInfo(mediaPath: string | null): JimakuMediaInfo {
titlePart = name.slice(0, parsed.index);
}
const seasonFromDir = parsed.season ?? detectSeasonFromDir(normalizedMediaPath);
const seasonFromDir =
parsed.season ?? detectSeasonFromDir(normalizedMediaPath);
const title = cleanupTitle(titlePart || name);
return {
@@ -277,7 +278,9 @@ function normalizeMediaPathForJimaku(mediaPath: string): string {
);
});
return decodeURIComponent(candidate || parsedUrl.hostname.replace(/^www\./, ""));
return decodeURIComponent(
candidate || parsedUrl.hostname.replace(/^www\./, ""),
);
} catch {
return trimmed;
}