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'])