align to metadata keys doc

This commit is contained in:
Worph
2026-08-30 19:50:25 +02:00
parent b823654b9a
commit aea258c803
5 changed files with 292 additions and 0 deletions
@@ -530,6 +530,9 @@ impl TriblerPlugin {
"movie"
};
rec.fields.insert("contentKind".to_string(), kind.to_string());
if let Some(d) = meta_feeder_sdk::domain::domain_for_content_kind(kind) {
rec.fields.insert("domain".to_string(), d.to_string());
}
}
// For episode records, stamp the *parsed* season/episode so the consumer
// renders a proper series with an ordered episode list (meta-watch keys
@@ -646,6 +649,7 @@ impl TriblerPlugin {
// resolves the show as TV (the show title drives the TMDB search).
r.fields
.insert("contentKind".to_string(), "episode".to_string());
r.fields.insert("domain".to_string(), "tv".to_string());
}
r
};