mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-02-12 23:16:15 +08:00
fix plex error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user