mirror of
https://github.com/iptv-org/epg
synced 2026-05-07 09:57:06 -04:00
Update tv24.se.config.js
This commit is contained in:
@@ -47,7 +47,12 @@ module.exports = {
|
||||
},
|
||||
async channels() {
|
||||
let html = await axios
|
||||
.get('https://tv24.se/x/settings/addremove')
|
||||
.get('https://tv24.se/x/settings/addremove', {
|
||||
headers: {
|
||||
'User-Agent':
|
||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'
|
||||
}
|
||||
})
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
let $ = cheerio.load(html)
|
||||
@@ -57,7 +62,9 @@ module.exports = {
|
||||
html = await axios
|
||||
.get('https://tv24.se', {
|
||||
headers: {
|
||||
Cookie: `selectedChannels=${nums.join(',')}`
|
||||
Cookie: `selectedChannels=${nums.join(',')}`,
|
||||
'User-Agent':
|
||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'
|
||||
}
|
||||
})
|
||||
.then(r => r.data)
|
||||
|
||||
Reference in New Issue
Block a user