From f6ff5076aec3c353e95bb2627b6df2adaffb549e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= <30985701+BellezaEmporium@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:06:36 +0100 Subject: [PATCH] added program genre --- sites/orangetv.es/orangetv.es.config.js | 5 +++++ 1 file changed, 5 insertions(+) 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 : []