From 4c61097ba5de3ebbe11961dd76f3f1d321fb05c4 Mon Sep 17 00:00:00 2001 From: thomraider12 <168651587+thomraider12@users.noreply.github.com> Date: Sun, 27 Oct 2024 13:48:00 +0000 Subject: [PATCH] Update meo.pt.config.js --- sites/meo.pt/meo.pt.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sites/meo.pt/meo.pt.config.js b/sites/meo.pt/meo.pt.config.js index 55e744344..902812786 100644 --- a/sites/meo.pt/meo.pt.config.js +++ b/sites/meo.pt/meo.pt.config.js @@ -1,4 +1,5 @@ const { DateTime } = require('luxon') +const axios = require('axios') module.exports = { site: 'meo.pt', @@ -31,14 +32,15 @@ module.exports = { programs.push({ title: item.name, start, - stop + stop, + description: item.description || '', // Inclui a descrição se existir + icon: item.icon || '' // Inclui o ícone se existir }) }) return programs }, async channels() { - const axios = require('axios') const data = await axios .post(`https://authservice.apps.meo.pt/Services/GridTv/GridTvMng.svc/getGridAnon`, null, { headers: { @@ -60,6 +62,7 @@ module.exports = { } } +// Funções utilitárias function parseStart(item) { return DateTime.fromFormat(`${item.date} ${item.timeIni}`, 'd-M-yyyy HH:mm', { zone: 'Europe/Lisbon'