fix channel grab for tvprofil.com

This commit is contained in:
whitesnakeftw
2025-08-01 13:27:47 +02:00
parent 7d1ad3f8c0
commit 87403985d0
2 changed files with 9065 additions and 5583 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -80,6 +80,12 @@ module.exports = {
.get(url, {
params: {
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)
@@ -97,6 +103,7 @@ module.exports = {
channels.push({
lang,
site_id: `${config.progsPath}#${item.urlID}`,
xmltv_id: `${item.title.replaceAll(/[ '&]/g, '')}.${country}`,
name: item.title
})
})