From 746417aa4543346af71e49ff8dfbde8afd967113 Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Sun, 10 Sep 2023 12:50:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=9A=E7=9F=A5=E6=B5=B7=E6=8A=A5?= =?UTF-8?q?=E5=87=BA=E9=94=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/module/manager/collector.py | 1 - backend/src/module/notification/notification.py | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/module/manager/collector.py b/backend/src/module/manager/collector.py index 40fd2b5d..f6f1dab8 100644 --- a/backend/src/module/manager/collector.py +++ b/backend/src/module/manager/collector.py @@ -50,7 +50,6 @@ def subscribe_season(data: Bangumi): return engine.download_bangumi(data) - def eps_complete(): with RSSEngine() as engine: datas = engine.bangumi.not_complete() diff --git a/backend/src/module/notification/notification.py b/backend/src/module/notification/notification.py index b50f6346..909fc92c 100644 --- a/backend/src/module/notification/notification.py +++ b/backend/src/module/notification/notification.py @@ -38,11 +38,7 @@ def __init__(self): def _get_poster(notify: Notification): with Database() as db: poster_path = db.bangumi.match_poster(notify.official_title) - if poster_path: - poster_link = "https://mikanani.me" + poster_path - else: - poster_link = "https://mikanani.me" - notify.poster_path = poster_link + notify.poster_path = poster_path def send_msg(self, notify: Notification) -> bool: self._get_poster(notify)