From 6b44eeea544ee643f4984816a78ee39077b9d3b4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Feb 2026 23:35:23 +0000 Subject: [PATCH] Fix: Prevent S00 display in movie subscription notifications Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com> --- app/helper/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helper/message.py b/app/helper/message.py index 52de08c8..9944e1d3 100644 --- a/app/helper/message.py +++ b/app/helper/message.py @@ -76,7 +76,7 @@ class TemplateContextBuilder: """ if not mediainfo: return - season_fmt = f"S{mediainfo.season:02d}" if mediainfo.season is not None else None + season_fmt = f"S{mediainfo.season:02d}" if mediainfo.season is not None and mediainfo.season > 0 else None base_info = { # 标题 "title": self.__convert_invalid_characters(mediainfo.title),