feat: plex更精准的媒体库刷新

This commit is contained in:
sowevo
2023-09-21 10:01:48 +08:00
parent cacee7abfe
commit ada5e1cca5

View File

@ -278,7 +278,7 @@ class Plex(metaclass=Singleton):
if hasattr(lib, "locations") and lib.locations:
for location in lib.locations:
if is_subpath(path, Path(location)):
return lib.key, location
return lib.key, str(path)
except Exception as err:
logger.error(f"查找媒体库出错:{err}")
return "", ""