mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -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 = {
|
||||
site: 'tvprofil.com',
|
||||
ignore: true, // NOTE: server is not stable
|
||||
request: {
|
||||
headers: {
|
||||
'x-requested-with': 'XMLHttpRequest'
|
||||
}
|
||||
},
|
||||
url: function ({ channel, date }) {
|
||||
const parts = channel.site_id.split('#')
|
||||
const query = buildQuery(parts[1], date)
|
||||
|
||||
return `https://tvprofil.com/${parts[0]}/program/?${query}`
|
||||
},
|
||||
logo: function ({ 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}`
|
||||
request: {
|
||||
headers: {
|
||||
'x-requested-with': 'XMLHttpRequest'
|
||||
}
|
||||
},
|
||||
parser: function ({ content, channel, date }) {
|
||||
let programs = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue