From 76adfd888cc4290ff15bd9d50699de7fcf2cf35d Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 14 Sep 2024 12:43:44 +0800 Subject: [PATCH] fix title --- plugins/embyreporter/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/embyreporter/__init__.py b/plugins/embyreporter/__init__.py index 4e4fba3..c9cd489 100644 --- a/plugins/embyreporter/__init__.py +++ b/plugins/embyreporter/__init__.py @@ -165,9 +165,10 @@ class EmbyReporter(_PluginBase): if self._type: mtype = NotificationType.__getitem__(str(self._type)) or NotificationType.MediaServer - self.post_message(title='Movies观影排行' if i == 2 else 'TV Shows观影排行', - mtype=mtype, - image=report_url) + self.post_message( + title=f'Movies 近{self._days}日观影排行' if i == 2 else f'TV Shows 近{self._days}日观影排行', + mtype=mtype, + image=report_url) logger.info(f"Emby观影记录推送成功 {report_url}") @staticmethod