mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 19:06:58 -05:00
Merge pull request #140 from iptv-org/fix-tvprofil
Update tvprofil.com.config.js
This commit is contained in:
@@ -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}`
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user