From 51e8777d8d93e36d1f5ac4d430f3bac05cd40114 Mon Sep 17 00:00:00 2001 From: joncrall Date: Tue, 16 Jan 2024 11:30:19 -0500 Subject: [PATCH] Get all info when building the media graph --- jellyfin_apiclient_python/media_graph.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jellyfin_apiclient_python/media_graph.py b/jellyfin_apiclient_python/media_graph.py index 77e6bb3..e5e808c 100644 --- a/jellyfin_apiclient_python/media_graph.py +++ b/jellyfin_apiclient_python/media_graph.py @@ -210,6 +210,9 @@ class StackFrame(typing.NamedTuple): item: dict depth: int + from jellyfin_apiclient_python.api import info + fields = info() + stack = [StackFrame(item, 0)] while stack: if pman is not None: @@ -260,7 +263,7 @@ class StackFrame(typing.NamedTuple): children = client.jellyfin.user_items(params={ 'ParentId': parent_id, 'Recursive': False, - 'fields': ['Path'], + 'fields': fields, }) if children and 'Items' in children: stats['total'] += len(children['Items'])