Update tvprofil.com.config.js

This commit is contained in:
Aleksandr Statciuk 2022-02-01 05:55:21 +03:00
parent c19e0cab4a
commit 28364c5837

View file

@ -4,22 +4,16 @@ const dayjs = require('dayjs')
module.exports = { module.exports = {
site: 'tvprofil.com', site: 'tvprofil.com',
ignore: true, // NOTE: server is not stable ignore: true, // NOTE: server is not stable
request: {
headers: {
'x-requested-with': 'XMLHttpRequest'
}
},
url: function ({ channel, date }) { url: function ({ channel, date }) {
const parts = channel.site_id.split('#') const parts = channel.site_id.split('#')
const query = buildQuery(parts[1], date) const query = buildQuery(parts[1], date)
return `https://tvprofil.com/${parts[0]}/program/?${query}` return `https://tvprofil.com/${parts[0]}/program/?${query}`
}, },
logo: function ({ content }) { request: {
const result = parseContent(content) headers: {
if (!result) return null 'x-requested-with': 'XMLHttpRequest'
}
return `https://cdn-0.tvprofil.com/cdn/100x40/10/img/kanali-logo/${result.data.channel.logo}`
}, },
parser: function ({ content, channel, date }) { parser: function ({ content, channel, date }) {
let programs = [] let programs = []