From a9746da11e771e8960b1a6649bd23c4f7c451f24 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Tue, 29 Jun 2021 16:06:33 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Novit=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- specials/news.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/specials/news.py b/specials/news.py index 208b3801..ba874c5e 100644 --- a/specials/news.py +++ b/specials/news.py @@ -400,13 +400,14 @@ def get_title(item): # title = re.compile("\[.*?\]", re.DOTALL).sub("", item.contentSerieName) if not scrapertools.get_season_and_episode(title) and item.contentEpisodeNumber: # contentSeason non c'รจ in support - if not item.contentSeason: - item.contentSeason = '1' - title = "%sx%s - %s" % (item.contentSeason, str(item.contentEpisodeNumber).zfill(2), title) + if item.contentSeason: + title = '{}x{:02d}. {}'.format(item.contentSeason, item.contentEpisodeNumber, title) + else: + title = '{:02d}. {}'.format(item.contentEpisodeNumber, title) else: seas = scrapertools.get_season_and_episode(item.title) if seas: - title = "%s - %s" % (seas, title) + title = "{}. {}".format(seas, title) elif item.contentTitle: # If it is a movie with the adapted channel title = item.contentTitle