This commit is contained in:
thsrite
2024-04-18 10:43:16 +08:00
parent eeb66b2bb4
commit 3b9213789e
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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"
}
}

View File

@@ -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,