From 84d5e2a6b33f03ed00276401fc257fb44e1cbbe9 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 28 May 2024 02:11:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Plex=E5=88=B7=E6=96=B0=E5=AA=92=E4=BD=93?= =?UTF-8?q?=E5=BA=93=E6=97=A0=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/plex/plex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]: