Skip to content

Commit

Permalink
add live tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Oct 20, 2021
1 parent 391742c commit 7b1e3af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PlutoIPTV/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ ${m3uUrl}
}

let isMovie = programme.episode.series.type == "film";
let isLive = programme.episode.liveBroadcast === true

let channelsGenres = [];
let mogrifiedGenres = [...movieGenres, ...seriesGenres];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7b1e3af

Please sign in to comment.