mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 云盘实时监控兼容v2
This commit is contained in:
@@ -373,5 +373,36 @@
|
||||
"v1.3": "去除已废弃的环境变量引用",
|
||||
"v1.2": "增强API安全性"
|
||||
}
|
||||
},
|
||||
"CloudLinkMonitor": {
|
||||
"name": "云盘实时监控",
|
||||
"description": "监控云盘目录文件变化,自动转移链接。",
|
||||
"labels": "云盘",
|
||||
"version": "2.4.7",
|
||||
"icon": "Linkease_A.png",
|
||||
"author": "thsrite",
|
||||
"level": 1,
|
||||
"history": {
|
||||
"v2.4.7": "兼容v2",
|
||||
"v2.4.5": "联动实时软连接插件(近媒体文件)",
|
||||
"v2.4.4": "修复刷新媒体库",
|
||||
"v2.4.3": "可选转移完刷新媒体库",
|
||||
"v2.4.2": "fix #65",
|
||||
"v2.4.1": "增加log",
|
||||
"v2.4": "修复二级目录",
|
||||
"v2.3": "去除无效变量",
|
||||
"v2.2": "优化配置一二级分类流程",
|
||||
"v2.1": "可配置是否存储转移记录",
|
||||
"v2.0": "修复不刮削不生效bug",
|
||||
"v1.8": "fix S00转移",
|
||||
"v1.7": "fix 刮削",
|
||||
"v1.6": "可配置是否刮削",
|
||||
"v1.5": "fix 消息推送",
|
||||
"v1.4": "fix 转移后路径",
|
||||
"v1.3": "修复bug",
|
||||
"v1.2": "修复订阅重复处理的bug",
|
||||
"v1.1": "自动转移链接(不刮削)",
|
||||
"v1.0": "监控云盘目录文件变化,按原文件名软连接"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ from app.db.transferhistory_oper import TransferHistoryOper
|
||||
from app.log import logger
|
||||
from app.modules.filemanager import FileManagerModule
|
||||
from app.plugins import _PluginBase
|
||||
from app.schemas import NotificationType, TransferInfo, FileItem
|
||||
from app.schemas import NotificationType, TransferInfo, FileItem, TransferDirectoryConf
|
||||
from app.schemas.types import EventType, MediaType, SystemConfigKey
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.system import SystemUtils
|
||||
@@ -60,7 +60,7 @@ class CloudLinkMonitor(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Linkease_A.png"
|
||||
# 插件版本
|
||||
plugin_version = "2.4.6"
|
||||
plugin_version = "2.4.7"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -409,12 +409,18 @@ class CloudLinkMonitor(_PluginBase):
|
||||
else:
|
||||
episodes_info = None
|
||||
|
||||
target_dir = TransferDirectoryConf()
|
||||
target_dir.library_path = target
|
||||
target_dir.transfer_type = transfer_type
|
||||
target_dir.scraping = self._scrape
|
||||
target_dir.renaming = True
|
||||
target_dir.overwrite_mode = "never"
|
||||
# 转移文件
|
||||
transferinfo: TransferInfo = self.filetransfer.transfer(fileitem=file_item,
|
||||
meta=file_meta,
|
||||
mediainfo=mediainfo,
|
||||
transfer_type=transfer_type,
|
||||
target_storage="local",
|
||||
target_directory=target_dir,
|
||||
episodes_info=episodes_info,
|
||||
scrape=self._scrape)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user