fix 修复目录监控·真

This commit is contained in:
thsrite
2024-10-23 12:34:39 +08:00
parent 6ca78c0cb9
commit 5871c60a9d
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -69,10 +69,13 @@ class DirectoryHelper:
continue continue
# 下载目录 # 下载目录
download_path = Path(d.download_path) download_path = Path(d.download_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 download_path != dest_path: if dest_path and library_path != dest_path:
continue continue
# 本地目录 # 本地目录
if local and d.storage != "local": if local and d.storage != "local":
+1
View File
@@ -418,6 +418,7 @@ class Monitor(metaclass=Singleton):
mediainfo=mediainfo, mediainfo=mediainfo,
transfer_type=dir_info.transfer_type, transfer_type=dir_info.transfer_type,
target_storage=dir_info.library_storage, target_storage=dir_info.library_storage,
target_path=Path(dir_info.library_path),
episodes_info=episodes_info, episodes_info=episodes_info,
scrape=dir_info.scraping) scrape=dir_info.scraping)