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
1 changed files with 3 additions and 5 deletions

View File

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