From 391742ccfb2d8243c419f903774a4b41361001f7 Mon Sep 17 00:00:00 2001 From: Aman Karmani Date: Wed, 20 Oct 2021 09:00:19 -0700 Subject: [PATCH] skip empty sub-title tags --- PlutoIPTV/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/PlutoIPTV/index.js b/PlutoIPTV/index.js index ccbd7b2..bb2f506 100755 --- a/PlutoIPTV/index.js +++ b/PlutoIPTV/index.js @@ -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, }); }