Update tvcubana.icrt.cu.config.js

This commit is contained in:
Aleksandr Statciuk 2021-11-24 18:24:20 +03:00
parent 24e3f50efc
commit dfbda9a64b

View file

@ -3,14 +3,12 @@ const timezone = require('dayjs/plugin/timezone')
dayjs.extend(timezone) dayjs.extend(timezone)
require('dayjs/locale/es')
module.exports = { module.exports = {
site: 'tvcubana.icrt.cu', site: 'tvcubana.icrt.cu',
url({ channel, date }) { url({ channel, date }) {
return `https://www.tvcubana.icrt.cu/cartv/${channel.site_id}/${date const daysOfWeek = ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado']
.locale('es')
.format('dddd')}.php` return `https://www.tvcubana.icrt.cu/cartv/${channel.site_id}/${daysOfWeek[date.day()]}.php`
}, },
logo({ channel }) { logo({ channel }) {
return channel.logo return channel.logo