Skip to content

Commit

Permalink
Get all info when building the media graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jan 21, 2024
1 parent d84dcfd commit 51e8777
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jellyfin_apiclient_python/media_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'])
Expand Down

0 comments on commit 51e8777

Please sign in to comment.