From ccc2dd3ccba4fd7a23f6b3f403e88e193165c434 Mon Sep 17 00:00:00 2001 From: leverglowh Date: Sun, 29 Sep 2024 18:33:35 +0200 Subject: [PATCH] fix: None official_title in bangumi stopping rss parsing --- backend/src/module/rss/analyser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/module/rss/analyser.py b/backend/src/module/rss/analyser.py index 457098e69..291bee9a1 100644 --- a/backend/src/module/rss/analyser.py +++ b/backend/src/module/rss/analyser.py @@ -31,7 +31,8 @@ def official_title_parser(self, bangumi: Bangumi, rss: RSSItem, torrent: Torrent bangumi.poster_link = poster_link else: pass - bangumi.official_title = re.sub(r"[/:.\\]", " ", bangumi.official_title) + if bangumi.official_title: + bangumi.official_title = re.sub(r"[/:.\\]", " ", bangumi.official_title) @staticmethod def get_rss_torrents(rss_link: str, full_parse: bool = True) -> list[Torrent]: