mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
rename 实时软连接
This commit is contained in:
@@ -32,5 +32,5 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/
|
||||
- [自定义命令 1.5](docs%2FCustomCommand.md)
|
||||
- docker自定义任务 1.2
|
||||
- 插件彻底卸载 1.0
|
||||
- 文件软连接 1.0
|
||||
- 实时软连接 1.0
|
||||
|
||||
|
||||
@@ -304,8 +304,8 @@
|
||||
}
|
||||
},
|
||||
"FileSoftLink": {
|
||||
"name": "文件软连接",
|
||||
"description": "监控目录文件变化,媒体文件软连接,其他文件可选复制。",
|
||||
"name": "实时软连接",
|
||||
"description": "监控目录文件变化,媒体文件软连接,其他文件可选复制。",
|
||||
"version": "1.0",
|
||||
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/softlink.png",
|
||||
"author": "thsrite",
|
||||
|
||||
@@ -47,7 +47,7 @@ class FileMonitorHandler(FileSystemEventHandler):
|
||||
|
||||
class FileSoftLink(_PluginBase):
|
||||
# 插件名称
|
||||
plugin_name = "文件软连接"
|
||||
plugin_name = "实时软连接"
|
||||
# 插件描述
|
||||
plugin_desc = "监控目录文件变化,媒体文件软连接,其他文件可选复制。"
|
||||
# 插件图标
|
||||
@@ -175,8 +175,8 @@ class FileSoftLink(_PluginBase):
|
||||
|
||||
# 运行一次定时服务
|
||||
if self._onlyonce:
|
||||
logger.info("软连接服务启动,立即运行一次")
|
||||
self._scheduler.add_job(name="软连接", func=self.sync_all, trigger='date',
|
||||
logger.info("实时软连接服务启动,立即运行一次")
|
||||
self._scheduler.add_job(name="实时软连接", func=self.sync_all, trigger='date',
|
||||
run_date=datetime.datetime.now(
|
||||
tz=pytz.timezone(settings.TZ)) + datetime.timedelta(seconds=3)
|
||||
)
|
||||
@@ -356,8 +356,8 @@ class FileSoftLink(_PluginBase):
|
||||
"path": "/softlink_sync",
|
||||
"endpoint": self.sync,
|
||||
"methods": ["GET"],
|
||||
"summary": "文件软连接同步",
|
||||
"description": "文件软连接同步",
|
||||
"summary": "实时软连接同步",
|
||||
"description": "实时软连接同步",
|
||||
}]
|
||||
|
||||
def get_service(self) -> List[Dict[str, Any]]:
|
||||
@@ -374,7 +374,7 @@ class FileSoftLink(_PluginBase):
|
||||
if self._enabled and self._cron:
|
||||
return [{
|
||||
"id": "FileSoftLink",
|
||||
"name": "文件软连接全量同步服务",
|
||||
"name": "实时软连接全量同步服务",
|
||||
"trigger": CronTrigger.from_crontab(self._cron),
|
||||
"func": self.sync_all,
|
||||
"kwargs": {}
|
||||
|
||||
Reference in New Issue
Block a user