From ab7f1edbc6a6011730a642cefefcc33bfaa2f8ef Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:09:18 +0300 Subject: [PATCH] Update yes.co.il.config.js --- sites/yes.co.il/yes.co.il.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sites/yes.co.il/yes.co.il.config.js b/sites/yes.co.il/yes.co.il.config.js index c32e433d..f60202be 100644 --- a/sites/yes.co.il/yes.co.il.config.js +++ b/sites/yes.co.il/yes.co.il.config.js @@ -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',