Merge remote-tracking branch 'origin/main'

This commit is contained in:
jxxghp 2023-10-10 13:27:11 +08:00
commit fca0a4b511
2 changed files with 9 additions and 7 deletions

View File

@ -173,7 +173,7 @@ MoviePilot需要配套下载器和媒体服务器配合使用。
### 2. **用户认证**
`MoviePilot`需要认证后才能使用,配置`AUTH_SITE`后,需要根据下表配置对应站点的认证参数(**仅能通过docker环境变量配置**
`MoviePilot`需要认证后才能使用,配置`AUTH_SITE`后,需要根据下表配置对应站点的认证参数(**仅能通过环境变量配置**
- **AUTH_SITE $\color{red}{*}$ ** 认证站点,支持`iyuu`/`hhclub`/`audiences`/`hddolby`/`zmpt`/`freefarm`/`hdfans`/`wintersakura`/`leaves`/`1ptba`/`icc2022`/`ptlsp`/`xingtan`

View File

@ -126,6 +126,13 @@ class DirMonitor(_PluginBase):
if not mon_path:
continue
# 自定义转移方式
if mon_path.count("#") == 1:
self._transferconf[mon_path] = mon_path.split("#")[1]
mon_path = mon_path.split("#")[0]
else:
self._transferconf[mon_path] = self._transfer_type
# 存储目的目录
if SystemUtils.is_windows():
if mon_path.count(":") > 1:
@ -136,12 +143,6 @@ class DirMonitor(_PluginBase):
else:
paths = mon_path.split(":")
# 自定义转移方式
if mon_path.count("#") == 1:
self._transferconf[mon_path] = mon_path.split("#")[1]
else:
self._transferconf[mon_path] = self._transfer_type
target_path = None
if len(paths) > 1:
mon_path = paths[0]
@ -615,6 +616,7 @@ class DirMonitor(_PluginBase):
'rows': 5,
'placeholder': '每一行一个目录,支持三种配置方式:\n'
'监控目录\n'
'监控目录#转移方式move|copy|link|softlink\n'
'监控目录:转移目的目录(需同时在媒体库目录中配置该目的目录)\n'
'监控目录:转移目的目录#转移方式move|copy|link|softlink'
}