mirror of
https://github.com/iptv-org/epg
synced 2026-05-08 02:16:59 -04:00
Update tv24.se.config.js
This commit is contained in:
@@ -47,7 +47,12 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
async channels() {
|
async channels() {
|
||||||
let html = await axios
|
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)
|
.then(r => r.data)
|
||||||
.catch(console.log)
|
.catch(console.log)
|
||||||
let $ = cheerio.load(html)
|
let $ = cheerio.load(html)
|
||||||
@@ -57,7 +62,9 @@ module.exports = {
|
|||||||
html = await axios
|
html = await axios
|
||||||
.get('https://tv24.se', {
|
.get('https://tv24.se', {
|
||||||
headers: {
|
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)
|
.then(r => r.data)
|
||||||
|
|||||||
Reference in New Issue
Block a user