Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
cfd7208cda
@ -77,7 +77,7 @@ class FileTransferModule(_ModuleBase):
|
|||||||
break
|
break
|
||||||
if not link_ok:
|
if not link_ok:
|
||||||
return False, f"媒体库目录中未找到" \
|
return False, f"媒体库目录中未找到" \
|
||||||
f"与下载目录 {d_path} 在同一磁盘/存储空间/映射路径的目录,将无法硬链接"
|
f"与下载目录 {d_path.path} 在同一磁盘/存储空间/映射路径的目录,将无法硬链接"
|
||||||
return True, ""
|
return True, ""
|
||||||
|
|
||||||
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
||||||
|
@ -317,7 +317,7 @@ class Plex:
|
|||||||
# 否则一个一个刷新
|
# 否则一个一个刷新
|
||||||
for path, lib_key in result_dict.items():
|
for path, lib_key in result_dict.items():
|
||||||
logger.info(f"刷新媒体库:{lib_key} - {path}")
|
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
|
@staticmethod
|
||||||
def __find_librarie(path: Path, libraries: List[Any]) -> Tuple[str, str]:
|
def __find_librarie(path: Path, libraries: List[Any]) -> Tuple[str, str]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user