From 3b9213789e1db5e85db2485d89a780fad740db1a Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 18 Apr 2024 10:43:16 +0800 Subject: [PATCH] fix --- README.md | 2 +- package.json | 3 ++- plugins/filesoftlink/__init__.py | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4518bb0..db4e917 100644 --- a/README.md +++ b/README.md @@ -32,5 +32,5 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - [自定义命令 1.5](docs%2FCustomCommand.md) - docker自定义任务 1.2 - 插件彻底卸载 1.0 -- 实时软连接 1.0 +- 实时软连接 1.1 diff --git a/package.json b/package.json index 5a31b12..969b479 100644 --- a/package.json +++ b/package.json @@ -306,11 +306,12 @@ "FileSoftLink": { "name": "实时软连接", "description": "监控目录文件变化,媒体文件软连接,其他文件可选复制。", - "version": "1.0", + "version": "1.1", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/softlink.png", "author": "thsrite", "level": 1, "history": { + "v1.1": "fix bug", "v1.0": "init" } } diff --git a/plugins/filesoftlink/__init__.py b/plugins/filesoftlink/__init__.py index c51f671..c0ed91f 100644 --- a/plugins/filesoftlink/__init__.py +++ b/plugins/filesoftlink/__init__.py @@ -53,7 +53,7 @@ class FileSoftLink(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/softlink.png" # 插件版本 - plugin_version = "1.0" + plugin_version = "1.1" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -104,8 +104,6 @@ class FileSoftLink(_PluginBase): if self._enabled or self._onlyonce: # 定时服务管理器 self._scheduler = BackgroundScheduler(timezone=settings.TZ) - # 追加入库消息统一发送服务 - self._scheduler.add_job(self.send_msg, trigger='interval', seconds=15) # 读取目录配置 monitor_dirs = self._monitor_dirs.split("\n") @@ -197,6 +195,7 @@ class FileSoftLink(_PluginBase): self.update_config({ "enabled": self._enabled, "onlyonce": self._onlyonce, + "copy_files": self._copy_files, "mode": self._mode, "monitor_dirs": self._monitor_dirs, "exclude_keywords": self._exclude_keywords,