fix(jimaku): keep the series name for stream titles containing slashes (#337)

This commit is contained in:
sudacode authored and GitHub committed 2026-11-22 23:59:19 -08:00
1 parent 71251b8d7b
commit 78809094d2
8 files changed
+118 -23

No files matched your search

@@ -2,7 +2,7 @@ import crypto from 'node:crypto';
import { spawn as nodeSpawn } from 'node:child_process';
import * as fs from 'node:fs';
import path from 'node:path';
import { parseMediaInfo } from '../../../jimaku/utils';
import { parseMediaLookupInfo } from '../../../jimaku/utils';
import { resolveMediaLookupTarget, sanitizeMediaTitle } from '../../../shared/media-identity';
import {
guessAnilistMediaInfo,
@@ -214,7 +214,7 @@ export async function guessAnimeVideoMetadata(
};
}
const fallbackInfo = parseMediaInfo(lookupTarget);
const fallbackInfo = parseMediaLookupInfo(mediaPath, mediaTitle);
return {
parsedBasename: parsedBasename ?? fallbackInfo.filename ?? null,
parsedTitle: parsed.title,