fix CloudLinkMonitor bug

This commit is contained in:
thsrite
2024-02-27 17:07:22 +08:00
parent 30e6ac78c1
commit 457b643acc
4 changed files with 6 additions and 5 deletions

View File

@@ -25,6 +25,6 @@ MoviePilot三方插件市场https://github.com/thsrite/MoviePilot-Plugins/
- [Emby观影报告 1.5](docs%2FEmbyReporter.md)
- [豆瓣明星热映订阅 1.3](docs%2FActorSubscribe.md)
- [短剧刮削 2.5](docs%2FShortPlayMonitor.md)
- [云盘实时链接 1.1](docs%2FCloudLinkMonitor.md)
- [云盘实时链接 1.2](docs%2FCloudLinkMonitor.md)
- [源文件恢复 1.2](docs%2FLinkToSrc.md)

View File

@@ -2,5 +2,6 @@
### 更新记录
- 1.2 fix bug
- 1.1 自动转移链接(不刮削)
- 1.0 监控云盘目录文件变化,按原文件名软连接

View File

@@ -122,7 +122,7 @@
"CloudLinkMonitor": {
"name": "云盘实时链接",
"description": "监控云盘目录文件变化,自动转移链接(不刮削)。",
"version": "1.1",
"version": "1.2",
"icon": "Linkease_A.png",
"author": "thsrite",
"level": 1

View File

@@ -57,7 +57,7 @@ class CloudLinkMonitor(_PluginBase):
# 插件图标
plugin_icon = "Linkease_A.png"
# 插件版本
plugin_version = "1.1"
plugin_version = "1.2"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -433,9 +433,9 @@ class CloudLinkMonitor(_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 = self._transfer_type
else:
_transfer_type = "copy"
else:
_transfer_type = self._transfer_type
# 查询转移目的目录
target: Path = self._dirconf.get(mon_path)