mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Update yes.co.il.config.js
This commit is contained in:
parent
a3a7dfb8e0
commit
ab7f1edbc6
1 changed files with 5 additions and 5 deletions
|
@ -26,16 +26,16 @@ module.exports = {
|
|||
}))
|
||||
},
|
||||
async channels() {
|
||||
const data = await axios.get(
|
||||
'https://svc.yes.co.il/api/content/broadcast-schedule/channels?page=0&pageSize=1000',
|
||||
{
|
||||
const data = await axios
|
||||
.get('https://svc.yes.co.il/api/content/broadcast-schedule/channels?page=0&pageSize=1000', {
|
||||
headers: {
|
||||
'accept-language': 'he-IL',
|
||||
'user-agent':
|
||||
'Mozilla/5.0 (Linux; Linux x86_64) AppleWebKit/600.3 (KHTML, like Gecko) Chrome/48.0.2544.291 Safari/600'
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
.then(r => r.data)
|
||||
.catch(console.error)
|
||||
|
||||
return data.items.map(channel => ({
|
||||
lang: 'he',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue