From e60346c440cd1a4d2b92f22223988abe0e72a67f Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 16 Sep 2021 01:37:33 +0300 Subject: [PATCH 1/2] Update update-codes.js --- scripts/update-codes.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/update-codes.js b/scripts/update-codes.js index d5de2442..ee0338f0 100644 --- a/scripts/update-codes.js +++ b/scripts/update-codes.js @@ -17,8 +17,11 @@ async function main() { .catch(console.log) const channels = parseChannels(file) channels.forEach(channel => { - if (!codes[channel.tvg_id + channel.display_name]) { - codes[channel.tvg_id + channel.display_name] = channel + if (!codes[channel.tvg_id]) { + channel.guides = [url] + codes[channel.tvg_id] = channel + } else { + codes[channel.tvg_id].guides.push(url) } }) } From b663da13f8dae71df30dc97bf907531850ede2ec Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 16 Sep 2021 01:38:36 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc96be9f..237ac621 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,11 @@ If successful, you should get the following response: "tvg_id": "CNNUSA.us", "display_name": "CNN USA", "logo": "https://cdn.tvpassport.com/image/station/100x100/cnn.png", - "country": "us" + "country": "us", + "guides": [ + "https://iptv-org.github.io/epg/guides/tvtv.us.guide.xml", + ... + ] }, ... ]