From af5bcb18d8d3c253fcd738a3adebda242df14d80 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Mon, 20 Nov 2023 09:37:33 +0300 Subject: [PATCH] Update i24news.tv --- sites/i24news.tv/i24news.tv.channels.xml | 7 ++++--- sites/i24news.tv/i24news.tv.config.js | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sites/i24news.tv/i24news.tv.channels.xml b/sites/i24news.tv/i24news.tv.channels.xml index af7d40a6..b8957434 100644 --- a/sites/i24news.tv/i24news.tv.channels.xml +++ b/sites/i24news.tv/i24news.tv.channels.xml @@ -1,6 +1,7 @@ - i24News Arabic - i24News English - i24 News Français + I24NEWS عربى + I24NEWS English (USA) + I24NEWS English (World) + I24NEWS Français diff --git a/sites/i24news.tv/i24news.tv.config.js b/sites/i24news.tv/i24news.tv.config.js index b67f1f5d..9fab012e 100644 --- a/sites/i24news.tv/i24news.tv.config.js +++ b/sites/i24news.tv/i24news.tv.config.js @@ -11,9 +11,9 @@ module.exports = { site: 'i24news.tv', days: 2, url: function ({ channel }) { - const [lang] = channel.site_id.split('#') + const [lang, region] = channel.site_id.split('#') - return `https://api.i24news.tv/v2/${lang}/schedules/world` + return `https://api.i24news.tv/v2/${lang}/schedules/${region}` }, parser: function ({ content, date }) { let programs = []