From ee09241b5a0e4a8deb91131ed84a0ab705167597 Mon Sep 17 00:00:00 2001 From: thsrite Date: Tue, 9 Jul 2024 11:05:35 +0800 Subject: [PATCH] fix #65 --- README.md | 2 +- package.json | 3 ++- plugins/cloudlinkmonitor/__init__.py | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d97bc86..650bb36 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - [Emby观影报告 v1.5](docs%2FEmbyReporter.md) - 演员订阅 v2.1 - [短剧刮削 v3.2](docs%2FShortPlayMonitor.md) -- 云盘实时监控 v2.4.1 +- 云盘实时监控 v2.4.2 - 源文件恢复 v1.2 - [微信消息转发 v2.7](docs%2FWeChatForward.md) - 订阅下载统计 v1.5 diff --git a/package.json b/package.json index 7c8b7da..5a4cb00 100644 --- a/package.json +++ b/package.json @@ -256,11 +256,12 @@ "name": "云盘实时监控", "description": "监控云盘目录文件变化,自动转移链接。", "labels": "云盘", - "version": "2.4.1", + "version": "2.4.2", "icon": "Linkease_A.png", "author": "thsrite", "level": 1, "history": { + "v2.4.2": "fix #65", "v2.4.1": "增加log", "v2.4": "修复二级目录", "v2.3": "去除无效变量", diff --git a/plugins/cloudlinkmonitor/__init__.py b/plugins/cloudlinkmonitor/__init__.py index b8a4335..8a0b02a 100644 --- a/plugins/cloudlinkmonitor/__init__.py +++ b/plugins/cloudlinkmonitor/__init__.py @@ -60,7 +60,7 @@ class CloudLinkMonitor(_PluginBase): # 插件图标 plugin_icon = "Linkease_A.png" # 插件版本 - plugin_version = "2.4.1" + plugin_version = "2.4.2" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -407,9 +407,6 @@ class CloudLinkMonitor(_PluginBase): else: episodes_info = None - if self._category and mediainfo.category and not self._auto_category: - target = target / mediainfo.category - if self._auto_category: # 转移文件 transferinfo: TransferInfo = self.filetransfer.transfer(path=file_path, @@ -420,6 +417,9 @@ class CloudLinkMonitor(_PluginBase): episodes_info=episodes_info, scrape=self._scrape) else: + if self._category and mediainfo.category: + target = target / mediainfo.category + # 转移文件 transferinfo: TransferInfo = self.filetransfer.transfer_media(in_path=file_path, in_meta=file_meta,