mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update tvprofil.com.config.js
This commit is contained in:
parent
c19e0cab4a
commit
28364c5837
1 changed files with 4 additions and 10 deletions
|
@ -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 = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue