From 3e78b3a515605c853a73263e10cec0e6577fce7e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 13 Aug 2023 09:40:40 +0800 Subject: [PATCH] fix bug --- app/plugins/speedlimiter/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/plugins/speedlimiter/__init__.py b/app/plugins/speedlimiter/__init__.py index a573b732..143c48ae 100644 --- a/app/plugins/speedlimiter/__init__.py +++ b/app/plugins/speedlimiter/__init__.py @@ -342,7 +342,7 @@ class SpeedLimiter(_PluginBase): if self._qb: self._qb.set_speed_limit(download_limit=download_limit, upload_limit=upload_limit) # 发送通知 - if self._notify: + if self._notify and (upload_limit or download_limit): title = f"Qbittorrent 开始{limit_type}限速" self.post_message( mtype=NotificationType.MediaServer, @@ -352,7 +352,7 @@ class SpeedLimiter(_PluginBase): if self._tr: self._tr.set_speed_limit(download_limit=download_limit, upload_limit=upload_limit) # 发送通知 - if self._notify: + if self._notify and (upload_limit or download_limit): title = f"Transmission 开始{limit_type}限速" self.post_message( mtype=NotificationType.MediaServer,