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 עברית 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 = [] 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', () => {