Update tvprofil.com.config.js

This commit is contained in:
Aleksandr Statciuk 2021-10-16 21:25:42 +03:00
parent 517cd820e6
commit 86b014f4e8

View file

@ -2,6 +2,7 @@ const cheerio = require('cheerio')
const dayjs = require('dayjs') const dayjs = require('dayjs')
module.exports = { module.exports = {
delay: 5000,
site: 'tvprofil.com', site: 'tvprofil.com',
request: { request: {
headers: { headers: {
@ -16,6 +17,7 @@ module.exports = {
}, },
logo: function ({ content }) { logo: function ({ content }) {
const result = parseContent(content) const result = parseContent(content)
if (!result) return null
return `https://cdn-0.tvprofil.com/cdn/100x40/10/img/kanali-logo/${result.data.channel.logo}` return `https://cdn-0.tvprofil.com/cdn/100x40/10/img/kanali-logo/${result.data.channel.logo}`
}, },