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
@@ -178,6 +178,12 @@ fn build_seed_record(
// mode marker, contentKind, and optionally anime.
fields.insert(mode.marker().to_string(), "true".to_string());
fields.insert("contentKind".to_string(), content_kind.to_string());
// The routing axis, co-written with the kind it derives from
// (METADATA_KEYS.md §1): `fileType` says what the bytes are, `domain` says
// which app wants the record.
if let Some(d) = meta_feeder_sdk::domain::domain_for_content_kind(content_kind) {
fields.insert("domain".to_string(), d.to_string());
}
fields.insert("fileType".to_string(), "video".to_string());
if anime {
fields.insert("anime".to_string(), "true".to_string());