From 5871c60a9dfa35ddb11b4ec1d5e3f699c5ff2b0d Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 23 Oct 2024 12:34:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=C2=B7=E7=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helper/directory.py | 5 ++++- app/monitor.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/helper/directory.py b/app/helper/directory.py index b67ea044..00fa8b96 100644 --- a/app/helper/directory.py +++ b/app/helper/directory.py @@ -69,10 +69,13 @@ class DirectoryHelper: continue # 下载目录 download_path = Path(d.download_path) + # 媒体库目录 + library_path = Path(d.library_path) + # 媒体类型 # 有目录时直接匹配 if src_path and download_path != src_path: continue - if dest_path and download_path != dest_path: + if dest_path and library_path != dest_path: continue # 本地目录 if local and d.storage != "local": diff --git a/app/monitor.py b/app/monitor.py index 79878c2e..bee6f0c8 100644 --- a/app/monitor.py +++ b/app/monitor.py @@ -418,6 +418,7 @@ class Monitor(metaclass=Singleton): mediainfo=mediainfo, transfer_type=dir_info.transfer_type, target_storage=dir_info.library_storage, + target_path=Path(dir_info.library_path), episodes_info=episodes_info, scrape=dir_info.scraping)