Files
archived-MoviePilot-Plugins/docs/CloudAssistant.md
thsrite bebbb9bd29 fix
2024-08-01 09:35:02 +08:00

183 lines
7.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 云盘助手
### 使用说明
提供四种方式,具体看示例
```
直接转移--softlink回本地
{
"transfer_type": "move",
"return_mode": "softlink",
"monitor_dirs": [
{
"retention_time": 0,
"monitor_mode": "fast",
/* 监控模式 compatibility/ */
"dest_path": "/series/link",
/* MP媒体库文件夹 */
"mount_path": "/115/CloudDrive/115/video",
/* MP网盘挂载文件夹 */
"return_path": "/115link/link",
/* 软连接生成文件夹 */
"delete_dest": "false",
/* 是否删除种子下载文件夹 */
"dest_preserve_hierarchy": 0,
/* 保留监控路径目录层级,例如 1表示保留监控目录后一层目录结构0表示仅保留到监控目录 */
"delete_history": "false",
/* 是否删除MoviePilot中转移历史记录 */
"delete_src": "false",
/* 是否删除做种文件 */
"src_paths": "/series/download",
/* 做种文件夹 */
"src_preserve_hierarchy": 0,
/* 保留做种文件夹目录层级0表示仅监控到源文件目录1表示监控源文件目录及其一级子目录 */
"only_media": "true",
/* 是否只监控媒体文件 */
"overwrite": "false",
/* 是否覆盖已存在云盘文件 */
"upload_cloud": "true"
/* 是否上传到云盘, false则直接软连接或者strm回本地 */
}
]
}
直接转移--strm回本地
{
"transfer_type": "copy/move",
"return_mode": "strm",
"monitor_dirs": [
{
"monitor_mode": "监控模式 compatibility/fast",
"dest_path": "/mnt/link/movies",
"mount_path": "/mnt/cloud/115/media/movies",
"return_path": "/mnt/strm/movies",
"library_dir": "/mnt/movies",
"cloud_type": "alist/cd2",
"cloud_path": "/CloudNas",
"cloud_url": "http://localhost:19798",
"cloud_scheme": "http/https",
"delete_dest": "false",
"dest_preserve_hierarchy": 0,
"delete_history": "false",
"delete_src": "false",
"src_paths": "/mnt/media/movies, /mnt/media/series",
"src_preserve_hierarchy": 0,
"only_media": "true",
"overwrite": "false",
"upload_cloud": "true"
}
]
}
cd2方式上传--softlink回本地暂时移除
{
"cd2_url": "cd2地址http://localhost:19798",
"username": "用户名",
"password": "密码",
"return_mode": "softlink",
"monitor_dirs": [
{
"monitor_mode": "监控模式 compatibility/fast",
"dest_path": "/mnt/link/movies",
"mount_path": "/mnt/cloud/115/media/movies",
"cd2_path": "/115/media/movies",
"return_path": "/mnt/softlink/movies",
"delete_dest": "false",
"dest_preserve_hierarchy": 0,
"delete_history": "false",
"delete_src": "false",
"src_paths": "/mnt/media/movies, /mnt/media/series",
"src_preserve_hierarchy": 0,
"only_media": "true",
"overwrite": "false",
"upload_cloud": "true"
}
]
}
cd2方式上传--strm回本地暂时移除
{
"cd2_url": "cd2地址http://localhost:19798",
"username": "用户名",
"password": "密码",
"return_mode": "strm",
"monitor_dirs": [
{
"monitor_mode": "监控模式 compatibility/fast",
"dest_path": "/mnt/link/movies",
"mount_path": "/mnt/cloud/115/media/movies",
"cd2_path": "/115/media/movies",
"return_path": "/mnt/strm/movies",
"library_dir": "/mnt/movies",
"cloud_type": "alist/cd2",
"cloud_path": "/CloudNas",
"cloud_url": "http://localhost:19798",
"cloud_scheme": "http/https",
"delete_dest": "false",
"dest_preserve_hierarchy": 0,
"delete_history": "false",
"delete_src": "false",
"src_paths": "/mnt/media/movies, /mnt/media/series",
"src_preserve_hierarchy": 0,
"only_media": "true",
"overwrite": "false",
"upload_cloud": "true"
}
]
}
```
- return_mode: 云盘文件回本地模式softlink/strm
- return_pathMoviePilot中软链接/strm生成路径
- retention_time: 本地文件保留时长(小时) 当前日期与文件创建日期的时间差(小时),大于此值的文件将被转移
- monitor_mode监控模式 compatibility/fast
- tranfer_type转移类型可选值copy/move
- dest_path: MoviePilot本地刮削好的文件路径MoviePilot媒体库目录
- mount_pathMoviePilot中云盘挂载路径
- delete_dest是否删除媒体库文件
- dest_preserve_hierarchy保留监控路径目录层级例如 1表示保留监控目录后一层目录结构0表示仅保留到监控目录
- delete_history是否删除MoviePilot中转移历史记录
- delete_src是否删除源文件仅上述监控路径查询到转移记录时才生效删除转移记录的源文件路径
- src_paths转移前的源文件路径多个目录用逗号分隔MoviePilot下载目录
- src_preserve_hierarchy保留源文件路径目录层级0表示仅监控到源文件目录1表示监控源文件目录及其一级子目录
-
- only_media是否只监控媒体文件
- overwrite是否覆盖已存在云盘文件
- upload_cloud: 是否上传到云盘, false则直接软连接或者strm回本地
- notify_url: 软连接或者strm回本地成功后通知接口地址post请求参数`{"path": "文件路径", "type": "add"}`
- strm配置具体看[CloudStrm.md](CloudStrm.md)
- library_dirstrm模式下媒体服务器内源文件路径
- cloud_typestrm模式下云盘类型可选值alist/cd2 `不填就是本地模式`
- cloud_pathstrm模式下cd2/alist挂载本地跟路径
- cloud_urlstrm模式下cd2/alist地址
- cloud_schemestrm模式下cd2/alist地址 http/httpsstrm模式可参考云盘Strm生成插件
-
[//]: # (- cd2_urlcd2地址)
[//]: # (- usernamecd2用户名)
[//]: # (- passwordcd2密码)
[//]: # (- cd2_pathcd2中云盘挂载路径)
路径:
- 监控目录源文件目录即云盘挂载到MoviePilot中的路径
- 目的路径MoviePilot中strm生成路径
- 媒体服务器内源文件路径:源文件目录即云盘挂载到媒体服务器的路径
示例:
- MoviePilot上云盘源文件路径 /mount/cloud/aliyun/emby`/tvshow/爸爸去哪儿/Season 5/14.特别版.mp4`
- MoviePilot上strm生成路径 /mnt/link/aliyun`/tvshow/爸爸去哪儿/Season 5/14.特别版.strm`
- 媒体服务器内源文件路径 /mount/cloud/aliyun/emby`/tvshow/爸爸去哪儿/Season 5/14.特别版.mp4`
- 监控配置为:/mount/cloud/aliyun/emby#/mnt/link/aliyun#/mount/cloud/aliyun/emby