fix 不开下载器监控,link测试无意义

This commit is contained in:
thsrite 2024-03-08 09:29:30 +08:00
parent e4a67ea052
commit 2eeb24e22d

View File

@ -46,7 +46,7 @@ class FileTransferModule(_ModuleBase):
library_path = Path(path)
if not library_path.exists():
return False, f"目录不存在:{library_path}"
if settings.TRANSFER_TYPE == "link":
if settings.DOWNLOADER_MONITOR and settings.TRANSFER_TYPE == "link":
if library_path.stat().st_dev != download_devid:
return False, f"下载目录 {download_path} 与媒体库目录 {library_path} 不在同一设备,将无法硬链接"
return True, ""