From c20bd84edd417f36625f290bd98ee42084a334de Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 6 Aug 2025 12:21:02 +0800 Subject: [PATCH] fix plex error --- app/modules/plex/plex.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/modules/plex/plex.py b/app/modules/plex/plex.py index 622097b3..e52003da 100644 --- a/app/modules/plex/plex.py +++ b/app/modules/plex/plex.py @@ -379,7 +379,10 @@ class Plex: file_path = item.target_path lib_key, path = self.__find_librarie(file_path, self._libraries) # 如果存在同一剧集的多集,key(path)相同会合并 - result_dict[path.as_posix()] = lib_key + if path: + result_dict[path.as_posix()] = lib_key + else: + result_dict[""] = lib_key if "" in result_dict: # 如果有匹配失败的,刷新整个库 self._plex.library.update()