virtual path and NFO title fall back to parsedTitle, filename-parser's guess since the claims model
Build and Push Docker Image / build (push) Successful in 2m7s

This commit is contained in:
Worph
2026-10-25 19:25:07 +00:00
parent b0edfb5f97
commit e1fd108f3a
2 changed files with 4 additions and 2 deletions
@@ -27,7 +27,8 @@ export function renamingRule(metamesh: Local, filepath?: string): string | null
} }
// The display name — never the `titles/*` name set, which has no preferred member (METADATA_KEYS.md §3). // The display name — never the `titles/*` name set, which has no preferred member (METADATA_KEYS.md §3).
const title = metamesh.title || metamesh.originalTitle; // `parsedTitle` is filename-parser's guess (claims model, D12): last resort.
const title = metamesh.title || metamesh.originalTitle || (metamesh as { parsedTitle?: string }).parsedTitle;
if (!title) { if (!title) {
if (metamesh.fileType !== "torrent") { if (metamesh.fileType !== "torrent") {
//don't warn for torrent files because they don't always have a title (eg representing a folder of files) //don't warn for torrent files because they don't always have a title (eg representing a folder of files)
@@ -87,7 +87,8 @@ export class JellyfinFormatHandler implements IMetadataFormatHandler {
// Title: the display name. `titles/*` is an unordered name set with no // Title: the display name. `titles/*` is an unordered name set with no
// preferred member, so it is never the NFO title (METADATA_KEYS.md §3). // preferred member, so it is never the NFO title (METADATA_KEYS.md §3).
const title = metadata.title || metadata.originalTitle; // `parsedTitle` is filename-parser's guess (claims model, D12): last resort.
const title = metadata.title || metadata.originalTitle || (metadata as { parsedTitle?: string }).parsedTitle;
if (title) jellyfinFields.title = title; if (title) jellyfinFields.title = title;
// IDs // IDs