Before creating your metadata template, you must first upload your files to the S3 bucket and organize them into titles. After organizing files into titles, you can create hierarchies to establish the relationship between them. For more information about hierarchies, see Creating a Title Hierarchy.
To create a metadata template, perform the following steps:
Open the Templates menu and select Metadata. The Metadata Templates page is displayed.
Select Create new template. The Create new Metadata Template page is displayed.
Enter a relevant name for your template.
Select the Format: CSV, XLSX or XML.
Configure your template using LiquidJS syntax. For more information about LiquidJS, see Templates Syntax.
Every attribute you include in your template reflects the field created on the hierarchy defined for your titles.
For example, for a hierarchy defined as Series -> Season -> Episode, the following XML metadata template can be configured:
{{entity.parent.parent.attributes['en_US']['Title_Type']}}{{entity.parent.attributes['en_US']['Season_ID']}}{{entity.attributes['en_US']['Asset_Description']}}{{entity.attributes['en_US']['FeatureHD in']['filename']}}{{entity.attributes['en_US']['FeatureHD in']['tracks'][0]['properties']['displayAspectRatio']}}
where
{{entity.parent.parent.attributes['en_US']['Title_Type']}}
refers to the Title_Type field defined on Series,
{{entity.parent.attributes['en_US']['Season_ID']}}
refers to the Season_ID field defined on Season
and
{{entity.attributes['en_US']['Asset_Description']}}
,{{entity.attributes['en_US']['FeatureHD in']['filename']}}
, {{entity.attributes['en_US']['FeatureHD in']['tracks'][0]['properties']['displayAspectRatio']}}
refer to the Asset_Description and FeatureHD in fields defined on Episode.
When running a job using this metadata template, Connect searches all files, finds the ones that have the Title_Type, Season_ID, Asset_Description and FeatureHD in metadata fields defined on them and automatically organizes them into Series, Seasons and Episodes.
Select Save. Your metadata template is created.
After creating the metadata template, you must also create a package template to tell the system which files to process and create metadata for, during a delivery. For more information, see Creating Package Templates.