From f558392001039cd1a7fefa0bf5a347b9467e623c Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 16 Aug 2024 17:20:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8F=91=E9=80=81=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/embyaudiobook/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/embyaudiobook/__init__.py b/plugins/embyaudiobook/__init__.py index 361e3bd..1e85e42 100644 --- a/plugins/embyaudiobook/__init__.py +++ b/plugins/embyaudiobook/__init__.py @@ -149,6 +149,15 @@ class EmbyAudioBook(_PluginBase): if not book_item.get("AlbumId"): logger.info(f"有声书 {item.get('Name')} 需要整理,共 {len(book_items)} 集") # self.__zl(items, -1) + # 发送通知 + if self._notify: + mtype = NotificationType.Manual + if self._msgtype: + mtype = NotificationType.__getitem__(str(self._msgtype)) or NotificationType.Manual + self.post_message(title="Emby有声书整理", + mtype=mtype, + text=f"有声书 {item.get('Name')} 需要整理,共 {len(book_items)} 集") + break logger.info("Emby有声书整理服务执行完毕")