mirror of
https://github.com/iptv-org/epg
synced 2026-05-10 19:37:00 -04:00
fix channel grab for tvprofil.com
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -51,7 +51,7 @@ module.exports = {
|
|||||||
de: { channelsPath: '/de', progsPath: 'de/tvprogramm', lang: 'de' },
|
de: { channelsPath: '/de', progsPath: 'de/tvprogramm', lang: 'de' },
|
||||||
es: { channelsPath: '/es', progsPath: 'es/programacion-tv', lang: 'es' },
|
es: { channelsPath: '/es', progsPath: 'es/programacion-tv', lang: 'es' },
|
||||||
fr: { channelsPath: '/fr', progsPath: 'fr/programme-tv', lang: 'fr' },
|
fr: { channelsPath: '/fr', progsPath: 'fr/programme-tv', lang: 'fr' },
|
||||||
hr: { channelsPath: '', progsPath: 'tvprogram', lang: 'hr' },
|
hr: { channelsPath: '', progsPath: 'tvprogram', lang: 'hr' },
|
||||||
hu: { channelsPath: '/hu', progsPath: 'hu/tvmusor', lang: 'hu' },
|
hu: { channelsPath: '/hu', progsPath: 'hu/tvmusor', lang: 'hu' },
|
||||||
ie: { channelsPath: '/ie', progsPath: 'ie/tvschedule', lang: 'en' },
|
ie: { channelsPath: '/ie', progsPath: 'ie/tvschedule', lang: 'en' },
|
||||||
it: { channelsPath: '/it', progsPath: 'it/guida-tv', lang: 'it' },
|
it: { channelsPath: '/it', progsPath: 'it/guida-tv', lang: 'it' },
|
||||||
@@ -80,6 +80,12 @@ module.exports = {
|
|||||||
.get(url, {
|
.get(url, {
|
||||||
params: {
|
params: {
|
||||||
callback: 'cb'
|
callback: 'cb'
|
||||||
|
},
|
||||||
|
headers: {
|
||||||
|
'x-requested-with': 'XMLHttpRequest',
|
||||||
|
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36',
|
||||||
|
'referer': 'https://tvprofil.com/programtv/',
|
||||||
|
'accept': 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(r => r.data)
|
.then(r => r.data)
|
||||||
@@ -97,6 +103,7 @@ module.exports = {
|
|||||||
channels.push({
|
channels.push({
|
||||||
lang,
|
lang,
|
||||||
site_id: `${config.progsPath}#${item.urlID}`,
|
site_id: `${config.progsPath}#${item.urlID}`,
|
||||||
|
xmltv_id: `${item.title.replaceAll(/[ '&]/g, '')}.${country}`,
|
||||||
name: item.title
|
name: item.title
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user