diff --git a/package.json b/package.json index dcfe3a3..504ee78 100644 --- a/package.json +++ b/package.json @@ -402,7 +402,7 @@ "QbCommand": { "name": "QB远程操作", "description": "通过定时任务或交互命令远程操作QB暂停/开始/限速等。", - "version": "1.1", + "version": "1.2", "icon": "Qbittorrent_A.png", "author": "DzAvril", "level": 1 diff --git a/plugins/qbcommand/__init__.py b/plugins/qbcommand/__init__.py index 2c4e8d1..ed66109 100644 --- a/plugins/qbcommand/__init__.py +++ b/plugins/qbcommand/__init__.py @@ -19,7 +19,7 @@ class QbCommond(_PluginBase): # 插件图标 plugin_icon = "Qbittorrent_A.png" # 插件版本 - plugin_version = "1.1" + plugin_version = "1.2" # 插件作者 plugin_author = "DzAvril" # 作者主页 @@ -488,7 +488,7 @@ class QbCommond(_PluginBase): title=f"【QB远程操作】", text=text, ) - elif not flag: + elif flag == False: logger.error(f"QB设置限速失败") if self._notify: self.post_message(