From 7a9ece8e59d5e605676ce5dfcbf28b88aea12d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= <30985701+BellezaEmporium@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:52:45 +0100 Subject: [PATCH 1/3] Update i24news.tv.channels.xml --- sites/i24news.tv/i24news.tv.channels.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sites/i24news.tv/i24news.tv.channels.xml b/sites/i24news.tv/i24news.tv.channels.xml index b8957434..3f6b355a 100644 --- a/sites/i24news.tv/i24news.tv.channels.xml +++ b/sites/i24news.tv/i24news.tv.channels.xml @@ -1,7 +1,7 @@ - I24NEWS عربى - I24NEWS English (USA) - I24NEWS English (World) - I24NEWS Français + I24NEWS عربى + I24NEWS English (USA) + I24NEWS Français + I24NEWS עברית From ed3ede914c99d12e004bc5484ea459ed7ea88428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= <30985701+BellezaEmporium@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:52:56 +0100 Subject: [PATCH 2/3] Update i24news.tv.config.js --- sites/i24news.tv/i24news.tv.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sites/i24news.tv/i24news.tv.config.js b/sites/i24news.tv/i24news.tv.config.js index 556bea40..b8539910 100644 --- a/sites/i24news.tv/i24news.tv.config.js +++ b/sites/i24news.tv/i24news.tv.config.js @@ -11,9 +11,7 @@ module.exports = { site: 'i24news.tv', days: 2, url: function ({ channel }) { - const [lang, region] = channel.site_id.split('#') - - return `https://api.i24news.tv/v2/${lang}/schedules/${region}` + return `https://api.i24news.tv/v2/${channel.site_id}/schedules` }, parser: function ({ content, date }) { let programs = [] From 38ab58d03ac2654f08e900f6878f3dc336d37c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Moret?= <30985701+BellezaEmporium@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:53:07 +0100 Subject: [PATCH 3/3] Update i24news.tv.test.js --- sites/i24news.tv/i24news.tv.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/i24news.tv/i24news.tv.test.js b/sites/i24news.tv/i24news.tv.test.js index 54c05f7a..2525cdd8 100644 --- a/sites/i24news.tv/i24news.tv.test.js +++ b/sites/i24news.tv/i24news.tv.test.js @@ -7,12 +7,12 @@ dayjs.extend(utc) const date = dayjs.utc('2022-03-06', 'YYYY-MM-DD').startOf('d') const channel = { - site_id: 'ar#', + site_id: 'ar', xmltv_id: 'I24NewsArabic.il' } it('can generate valid url', () => { - expect(url({ channel })).toBe('https://api.i24news.tv/v2/ar/schedules/world') + expect(url({ channel })).toBe('https://api.i24news.tv/v2/ar/schedules') }) it('can parse response', () => {