align to metadata keys doc

This commit is contained in:
Worph
2026-08-30 19:48:53 +02:00
parent bcd1eea5a2
commit f28f7d8594
+4
View File
@@ -632,6 +632,10 @@ async function applyTmdbData(
data.original_name !== undefined;
metadata.videoType = isTv ? 'tvshow' : 'movie';
metadata.contentKind = isTv ? 'episode' : 'movie';
// `domain` is written in the same breath as `contentKind`
// (METADATA_KEYS.md §1) — it is the key meta-watch filters its wall on,
// and TMDB is precisely the identity graph that decides film vs tv here.
metadata.domain = isTv ? 'tv' : 'film';
// Title - store both original and localized
const originalTitle = data.original_title || data.original_name;