mirror of
https://github.com/iptv-org/epg
synced 2026-05-06 09:27:03 -04:00
Update yes.co.il.config.js
This commit is contained in:
@@ -26,16 +26,16 @@ module.exports = {
|
|||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
async channels() {
|
async channels() {
|
||||||
const data = await axios.get(
|
const data = await axios
|
||||||
'https://svc.yes.co.il/api/content/broadcast-schedule/channels?page=0&pageSize=1000',
|
.get('https://svc.yes.co.il/api/content/broadcast-schedule/channels?page=0&pageSize=1000', {
|
||||||
{
|
|
||||||
headers: {
|
headers: {
|
||||||
'accept-language': 'he-IL',
|
'accept-language': 'he-IL',
|
||||||
'user-agent':
|
'user-agent':
|
||||||
'Mozilla/5.0 (Linux; Linux x86_64) AppleWebKit/600.3 (KHTML, like Gecko) Chrome/48.0.2544.291 Safari/600'
|
'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 => ({
|
return data.items.map(channel => ({
|
||||||
lang: 'he',
|
lang: 'he',
|
||||||
|
|||||||
Reference in New Issue
Block a user