Merge pull request #140 from iptv-org/fix-tvprofil

Update tvprofil.com.config.js
This commit is contained in:
Aleksandr Statciuk 2021-10-16 21:26:29 +03:00 committed by GitHub
commit 66aee4686f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}`
}, },