mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix(filemanager): skip library path check when transfer is disabled
This commit is contained in:
@@ -81,8 +81,9 @@ class FileManagerModule(_ModuleBase):
|
|||||||
return False, f"{d.name} 的下载目录未设置"
|
return False, f"{d.name} 的下载目录未设置"
|
||||||
if d.storage == "local" and not Path(download_path).exists():
|
if d.storage == "local" and not Path(download_path).exists():
|
||||||
return False, f"{d.name} 的下载目录 {download_path} 不存在"
|
return False, f"{d.name} 的下载目录 {download_path} 不存在"
|
||||||
# 媒体库目录
|
# 仅在启用整理时检查媒体库目录
|
||||||
library_path = d.library_path
|
library_path = d.library_path
|
||||||
|
if d.transfer_type:
|
||||||
if not library_path:
|
if not library_path:
|
||||||
return False, f"{d.name} 的媒体库目录未设置"
|
return False, f"{d.name} 的媒体库目录未设置"
|
||||||
if d.library_storage == "local" and not Path(library_path).exists():
|
if d.library_storage == "local" and not Path(library_path).exists():
|
||||||
|
|||||||
Reference in New Issue
Block a user