Added channel logo parser

This commit is contained in:
freearhey
2021-03-20 14:47:05 +03:00
parent df9bc0b592
commit 0ccb18336d
5 changed files with 34 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ module.exports = {
url: function ({ date }) {
return `https://programacion-tv.elpais.com/data/parrilla_${date.format('DDMMYYYY')}.json`
},
logo: function ({ channel }) {
return `https://programacion-tv.elpais.com/imagenes/canales/${channel.site_id}.jpg`
},
parser: function ({ content, date, channel }) {
const programs = []
const channelData = content.find(i => i.idCanal === channel.site_id)