mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
Merge pull request #2968 from wikrin/fix-get_dir
This commit is contained in:
@@ -65,17 +65,15 @@ class DirectoryHelper:
|
|||||||
dirs = self.get_dirs()
|
dirs = self.get_dirs()
|
||||||
# 按照配置顺序查找
|
# 按照配置顺序查找
|
||||||
for d in dirs:
|
for d in dirs:
|
||||||
if not d.download_path or not d.library_path:
|
|
||||||
continue
|
|
||||||
# 下载目录
|
# 下载目录
|
||||||
download_path = Path(d.download_path)
|
download_path = Path(d.download_path)
|
||||||
# 媒体库目录
|
# 媒体库目录
|
||||||
library_path = Path(d.library_path)
|
library_path = Path(d.library_path)
|
||||||
# 媒体类型
|
# 下载目录不匹配, 不符合条件, 通常处理`下载`匹配
|
||||||
# 有目录时直接匹配
|
|
||||||
if src_path and download_path != src_path:
|
if src_path and download_path != src_path:
|
||||||
continue
|
continue
|
||||||
if dest_path and library_path != dest_path:
|
# 媒体库目录不匹配, 或监控方式为None(即不自动整理), 不符合条件, 通常处理`整理`匹配
|
||||||
|
if dest_path and library_path != dest_path or not d.monitor_type:
|
||||||
continue
|
continue
|
||||||
# 本地目录
|
# 本地目录
|
||||||
if local and d.storage != "local":
|
if local and d.storage != "local":
|
||||||
|
|||||||
Reference in New Issue
Block a user