diff --git a/app/modules/filetransfer/__init__.py b/app/modules/filetransfer/__init__.py index 4b0d7b7d..caf198d9 100644 --- a/app/modules/filetransfer/__init__.py +++ b/app/modules/filetransfer/__init__.py @@ -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]]: diff --git a/app/modules/plex/plex.py b/app/modules/plex/plex.py index 40076e1b..ffe54c73 100644 --- a/app/modules/plex/plex.py +++ b/app/modules/plex/plex.py @@ -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]: