fix: 通知海报出错。

This commit is contained in:
EstrellaXD
2023-09-10 12:50:07 +08:00
parent cfddecc0c1
commit 746417aa45
2 changed files with 1 additions and 6 deletions

View File

@@ -50,7 +50,6 @@ class SeasonCollector(DownloadClient):
return engine.download_bangumi(data)
def eps_complete():
with RSSEngine() as engine:
datas = engine.bangumi.not_complete()

View File

@@ -38,11 +38,7 @@ class PostNotification:
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)