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()