Skip to content

Commit

Permalink
skip empty sub-title tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Oct 20, 2021
1 parent 139171c commit 391742c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions PlutoIPTV/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,12 @@ ${m3uUrl}
});
});

if (!isMovie) {
let subTitle = programme.title == programme.episode.name ? "" : programme.episode.name
if (!isMovie && subTitle) {
airing.children.push({
name: "sub-title",
attrs: { lang: "en" },
text:
programme.title == programme.episode.name
? ""
: programme.episode.name,
text: subTitle,
});
}

Expand Down

0 comments on commit 391742c

Please sign in to comment.