From 021fcb17bb63cf95c9aca2fe89c77651982ebd16 Mon Sep 17 00:00:00 2001 From: Attente <19653207+wikrin@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:16:52 +0800 Subject: [PATCH] fix: #2974 #2963 --- app/helper/directory.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helper/directory.py b/app/helper/directory.py index 38801606..31ce5d8b 100644 --- a/app/helper/directory.py +++ b/app/helper/directory.py @@ -73,8 +73,9 @@ class DirectoryHelper: if src_path and download_path != src_path: continue # 媒体库目录不匹配, 或监控方式为None(即不自动整理), 不符合条件, 通常处理`整理`匹配 - if dest_path and library_path != dest_path or not d.monitor_type: - continue + if dest_path: + if library_path != dest_path or not d.monitor_type: + continue # 本地目录 if local and d.storage != "local": continue