Merge remote-tracking branch 'origin/main'

This commit is contained in:
jxxghp 2024-05-28 12:25:39 +08:00
commit cfd7208cda
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class FileTransferModule(_ModuleBase):
break
if not link_ok:
return False, f"媒体库目录中未找到" \
f"与下载目录 {d_path} 在同一磁盘/存储空间/映射路径的目录,将无法硬链接"
f"与下载目录 {d_path.path} 在同一磁盘/存储空间/映射路径的目录,将无法硬链接"
return True, ""
def init_setting(self) -> Tuple[str, Union[str, bool]]:

View File

@ -317,7 +317,7 @@ class Plex:
# 否则一个一个刷新
for path, lib_key in result_dict.items():
logger.info(f"刷新媒体库:{lib_key} - {path}")
self._plex.query(f'/library/sections/{lib_key}/refresh?path={quote_plus(path)}')
self._plex.query(f'/library/sections/{lib_key}/refresh?path={quote_plus(str(Path(path).parent))}')
@staticmethod
def __find_librarie(path: Path, libraries: List[Any]) -> Tuple[str, str]: