mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 23:16:47 +00:00
fix LinkMonitor
This commit is contained in:
@@ -354,7 +354,7 @@
|
||||
"LinkMonitor": {
|
||||
"name": "实时硬链接",
|
||||
"description": "监控目录文件变化,实时硬链接。",
|
||||
"version": "1.3",
|
||||
"version": "1.4",
|
||||
"icon": "Linkace_C.png",
|
||||
"author": "jxxghp",
|
||||
"level": 1
|
||||
|
||||
@@ -51,7 +51,7 @@ class LinkMonitor(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Linkace_C.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.3"
|
||||
plugin_version = "1.4"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -304,9 +304,9 @@ class LinkMonitor(_PluginBase):
|
||||
# 判断文件大小
|
||||
if self._size and float(self._size) > 0 and file_path.stat().st_size < float(self._size) * 1024:
|
||||
logger.info(f"{event_path} 文件大小小于最小文件大小,复制...")
|
||||
_transfer_type = "link"
|
||||
else:
|
||||
_transfer_type = "copy"
|
||||
else:
|
||||
_transfer_type = "link"
|
||||
|
||||
# 查询转移目的目录
|
||||
target: Path = self._dirconf.get(mon_path)
|
||||
|
||||
Reference in New Issue
Block a user