mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-14 10:30:35 +08:00
fix: 通知海报出错。
This commit is contained in:
@@ -50,7 +50,6 @@ class SeasonCollector(DownloadClient):
|
||||
return engine.download_bangumi(data)
|
||||
|
||||
|
||||
|
||||
def eps_complete():
|
||||
with RSSEngine() as engine:
|
||||
datas = engine.bangumi.not_complete()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user