From 7b1e3afd3301b2a2632f2b11a9bfc8a7c710f6c4 Mon Sep 17 00:00:00 2001 From: Aman Karmani Date: Wed, 20 Oct 2021 09:00:24 -0700 Subject: [PATCH] add live tags --- PlutoIPTV/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PlutoIPTV/index.js b/PlutoIPTV/index.js index bb2f506..6b423fc 100755 --- a/PlutoIPTV/index.js +++ b/PlutoIPTV/index.js @@ -420,6 +420,7 @@ ${m3uUrl} } let isMovie = programme.episode.series.type == "film"; + let isLive = programme.episode.liveBroadcast === true let channelsGenres = []; let mogrifiedGenres = [...movieGenres, ...seriesGenres]; @@ -523,6 +524,11 @@ ${m3uUrl} text: programme.episode._id, }) } + if (isLive) { + airing.children.push({ + name: "live", + }) + } let uniqueGenres = channelsGenres.filter(function (item, pos) { return channelsGenres.indexOf(item) == pos;