mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
use download storage instead of library storage
This commit is contained in:
@@ -239,11 +239,11 @@ class DownloadChain(ChainBase):
|
|||||||
download_dir = Path(save_path)
|
download_dir = Path(save_path)
|
||||||
# Check if the download_dir matches any configured dirs
|
# Check if the download_dir matches any configured dirs
|
||||||
dir_info = DirectoryHelper().get_dir(dest_path=download_dir)
|
dir_info = DirectoryHelper().get_dir(dest_path=download_dir)
|
||||||
storage = dir_info.library_storage if dir_info else storage
|
storage = dir_info.storage if dir_info else storage
|
||||||
else:
|
else:
|
||||||
# 根据媒体信息查询下载目录配置
|
# 根据媒体信息查询下载目录配置
|
||||||
dir_info = DirectoryHelper().get_dir(_media, include_unsorted=True)
|
dir_info = DirectoryHelper().get_dir(_media, include_unsorted=True)
|
||||||
storage = dir_info.library_storage if dir_info else storage
|
storage = dir_info.storage if dir_info else storage
|
||||||
# 拼装子目录
|
# 拼装子目录
|
||||||
if dir_info:
|
if dir_info:
|
||||||
# 一级目录
|
# 一级目录
|
||||||
|
|||||||
Reference in New Issue
Block a user