This commit is contained in:
thsrite
2025-06-09 20:06:14 +08:00
parent a08b72fcc5
commit ae7d7d8bb1
2 changed files with 27 additions and 3 deletions

View File

@@ -409,11 +409,12 @@
"name": "目录实时监控",
"description": "监控云盘目录文件变化,自动转移媒体文件。",
"labels": "云盘,工具",
"version": "2.5.8",
"version": "2.5.9",
"icon": "Linkease_A.png",
"author": "thsrite",
"level": 1,
"history": {
"v2.5.9": "增加定时任务执行",
"v2.5.8": "fix bug",
"v2.5.7": "修复获取目录设置配置",
"v2.5.6": "修复软连接",

View File

@@ -63,7 +63,7 @@ class CloudLinkMonitor(_PluginBase):
# 插件图标
plugin_icon = "Linkease_A.png"
# 插件版本
plugin_version = "2.5.8"
plugin_version = "2.5.9"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -139,7 +139,7 @@ class CloudLinkMonitor(_PluginBase):
self._monitor_dirs = config.get("monitor_dirs") or ""
self._exclude_keywords = config.get("exclude_keywords") or ""
self._interval = config.get("interval") or 10
# self._cron = config.get("cron")
self._cron = config.get("cron")
self._size = config.get("size") or 0
self._softlink = config.get("softlink")
self._strm = config.get("strm")
@@ -269,6 +269,7 @@ class CloudLinkMonitor(_PluginBase):
"interval": self._interval,
"history": self._history,
"softlink": self._softlink,
"cron": self._cron,
"strm": self._strm,
"scrape": self._scrape,
"category": self._category,
@@ -958,6 +959,28 @@ class CloudLinkMonitor(_PluginBase):
}
]
},
{
'component': 'VRow',
'content': [
{
'component': 'VCol',
'props': {
'cols': 12,
'md': 4
},
'content': [
{
'component': 'VTextField',
'props': {
'model': 'cron',
'label': '定时任务',
'placeholder': '0 0 * * *'
}
}
]
}
]
},
{
'component': 'VRow',
'content': [