修复通知emby时libraryId错误bug

This commit is contained in:
songzhou 2023-09-28 22:05:43 +08:00
parent 3dd7b33f3e
commit 2bff3a80da

View File

@ -488,7 +488,7 @@ class Emby(metaclass=Singleton):
# 匹配子目录
subfolder_path = Path(subfolder.get("Path"))
if item_path.is_relative_to(subfolder_path):
return subfolder.get("Id")
return folder.get("Id")
except Exception as err:
print(str(err))
# 如果找不到,只要路径中有分类目录名就命中