mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-05-22 23:16:43 +00:00
fix CloudLinkMonitor bug
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
|
||||
### 更新记录
|
||||
|
||||
- 1.2 fix bug
|
||||
- 1.1 自动转移链接(不刮削)
|
||||
- 1.0 监控云盘目录文件变化,按原文件名软连接
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
"CloudLinkMonitor": {
|
||||
"name": "云盘实时链接",
|
||||
"description": "监控云盘目录文件变化,自动转移链接(不刮削)。",
|
||||
"version": "1.1",
|
||||
"version": "1.2",
|
||||
"icon": "Linkease_A.png",
|
||||
"author": "thsrite",
|
||||
"level": 1
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user