From e17684e83b8748cc960b2b84396897acad53893c Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 23 Aug 2025 14:33:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BD=BF=E7=94=A8=E6=B5=85=E6=8B=B7?= =?UTF-8?q?=E8=B4=9D=E6=9B=BF=E4=BB=A3=E6=B7=B1=E6=8B=B7=E8=B4=9D=E4=BB=A5?= =?UTF-8?q?=E5=87=8F=E5=B0=91=E5=86=85=E5=AD=98=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/embymetarefresh/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins.v2/embymetarefresh/__init__.py b/plugins.v2/embymetarefresh/__init__.py index 94e31f5..be66531 100644 --- a/plugins.v2/embymetarefresh/__init__.py +++ b/plugins.v2/embymetarefresh/__init__.py @@ -561,8 +561,14 @@ class EmbyMetaRefresh(_PluginBase): peopleimdbid = p["ProviderIds"]["imdb"] return peopletmdbid, peopleimdbid - # 返回的人物信息 - ret_people = copy.deepcopy(people) + # 返回的人物信息 - 使用浅拷贝替代深拷贝以减少内存使用 + ret_people = people.copy() + # 对于嵌套字典,需要单独处理 + for key, value in people.items(): + if isinstance(value, dict): + ret_people[key] = value.copy() + elif isinstance(value, list): + ret_people[key] = value.copy() try: # 查询媒体库人物详情