Files
archived-MoviePilot-Plugins/docs/CloudAssistant.md

146 lines
4.8 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": "copy/move",
"return_mode": "softlink",
"monitor_dirs": [
{
"monitor_mode": "监控模式 compatibility/fast",
"local_path": "/mnt/link/movies",
"mount_path": "/mnt/cloud/115/media/movies",
"return_path": "/mnt/softlink/movies",
"delete_local": "false",
"preserve_hierarchy": 0,
"delete_history": "false",
"just_media": "true",
"overwrite": "false",
"upload_cloud": "true"
}
]
}
直接转移--strm回本地
{
"transfer_type": "copy/move",
"return_mode": "strm",
"monitor_dirs": [
{
"monitor_mode": "监控模式 compatibility/fast",
"local_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_local": "false",
"preserve_hierarchy": 0,
"delete_history": "false",
"just_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",
"local_path": "/mnt/link/movies",
"mount_path": "/mnt/cloud/115/media/movies",
"cd2_path": "/115/media/movies",
"return_path": "/mnt/softlink/movies",
"delete_local": "false",
"preserve_hierarchy": 0,
"delete_history": "false",
"just_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",
"local_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_local": "false",
"preserve_hierarchy": 0,
"delete_history": "false",
"just_media": "true",
"overwrite": "false",
"upload_cloud": "true"
}
]
}
```
- return_mode: 云盘文件回本地模式softlink/strm
- cd2_urlcd2地址
- usernamecd2用户名
- passwordcd2密码
- tranfer_type转移类型可选值copy/move
- local_path: MoviePilot本地上传路径
- mount_pathMoviePilot中云盘挂载路径
- cd2_pathcd2中云盘挂载路径
- return_pathMoviePilot中软链接/strm生成路径
- monitor_mode监控模式 compatibility/fast
- delete_local是否删除本地文件
- preserve_hierarchy保留监控目录后结构层级例如 1表示保留监控目录后一层目录结构0表示仅保留到监控目录
- delete_history是否删除MoviePilot中转移历史记录
- just_media是否只监控媒体文件
- overwrite是否覆盖已存在云盘文件
- upload_cloud: 是否上传到云盘,false则直接软连接或者strm回本地
- library_dirstrm模式下媒体服务器内源文件路径
- cloud_typestrm模式下云盘类型可选值alist/cd2
- cloud_pathstrm模式下cd2/alist挂载本地跟路径
- cloud_urlstrm模式下cd2/alist地址
- cloud_schemestrm模式下cd2/alist地址 http/httpsstrm模式可参考云盘Strm生成插件
路径:
- 监控目录源文件目录即云盘挂载到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