mirror of
https://github.com/iptv-org/epg
synced 2026-05-08 18:36:59 -04:00
Update tv24.se.config.js
This commit is contained in:
@@ -82,7 +82,12 @@ module.exports = {
|
||||
async function loadProgramDetails($item) {
|
||||
const programId = $item('a').attr('href')
|
||||
const data = await axios
|
||||
.get(`https://tv24.se/x${programId}/0/0`)
|
||||
.get(`https://tv24.se/x${programId}/0/0`, {
|
||||
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.error)
|
||||
if (!data) return Promise.resolve({})
|
||||
|
||||
Reference in New Issue
Block a user