Update tv24.se.config.js

This commit is contained in:
freearhey
2026-04-20 04:39:47 +03:00
parent a1cb0abd67
commit c1f7ece997

View File

@@ -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)