diff --git a/sites/orangetv.es/orangetv.es.config.js b/sites/orangetv.es/orangetv.es.config.js index f02068c3..9003c994 100644 --- a/sites/orangetv.es/orangetv.es.config.js +++ b/sites/orangetv.es/orangetv.es.config.js @@ -52,6 +52,7 @@ module.exports = { programs.push({ title: item.name, description: item.description, + category: parseGenres(item), season: item.seriesSeason || null, episode: item.episodeId || null, icon: parseIcon(item), @@ -92,6 +93,10 @@ function parseIcon(item){ return '' } +function parseGenres(item){ + return item.genres.map(i => i.name); +} + function parseItems(content, channel) { const json = typeof content === 'string' ? JSON.parse(content) : Array.isArray(content) ? content : []