Skip to content

Commit

Permalink
add channel-number to the m3u
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Oct 20, 2021
1 parent 12f5714 commit d3ef0ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PlutoIPTV/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,10 @@ function processChannels(version, channels) {
.replace(/(\r\n|\n|\r)/gm, " ")
.replace('"', "")
.replace("”", "");
let channelNumberTag;

m3u8 =
m3u8 +
`#EXTINF:0 channel-id="${slug}" tvg-logo="${logo}" tvc-guide-art="${art}" tvc-guide-title="${name}" tvc-guide-description="${guideDescription}" group-title="${group}", ${name}
`#EXTINF:0 channel-id="${slug}" channel-number="${channel.number}" tvg-logo="${logo}" tvc-guide-art="${art}" tvc-guide-title="${name}" tvc-guide-description="${guideDescription}" group-title="${group}", ${name}
${m3uUrl}
`;
Expand Down

0 comments on commit d3ef0ef

Please sign in to comment.