OpenTV ENTera & OpenTV Platform Documentation
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2

Editing contexts

Overview

XroadMedia provides an application called Piloto that allows you to edit contexts (which allow Ncanto to provide recommendations that are tailored to specific scenarios).

Piloto's Context Editor is a very powerful graphical tool for editing contexts. But it also has a source view that allows you to view and edit the current context in JSON format.

For simplicity, all the examples on this page use JSON. These can be copied and pasted into Piloto's source code view.

Adding a genre filter to a context

You can add a simple filter to an existing context to filter the recommendations it returns by genre.

For example, to add a filter for the horror genre, add this within the global object:

"filter": {
    "term":"genreBroad", 
    "value": "horror"
}

Adding a channel group filter to a context

Sometimes you will want to filter by channel group. For example, if your channel lineup includes five BBC channels, you might want to display a single section in your application containing recommended catch-up content from all five of these channels.

To do this, you need to add a filter to an existing context for catch-up recommendations. For example, to include only recommendations for the specified BBC channels, add this within the global object:

"filter": {
    "term":"sourceId", 
    "operator":"in", 
    "values": ["BBC1","BBC2","BBC4","BBCNews","CBBC"]
}