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)