Skip to content

Commit

Permalink
Merge pull request #1670 from CastagnaIT/fix_empty_person
Browse files Browse the repository at this point in the history
[infolabels] Make sure that parsed persons have a name
  • Loading branch information
CastagnaIT committed Jan 7, 2024
2 parents bb132cd + a8aa50b commit c2acdd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/lib/kodi/infolabels.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def _parse_referenced_infos(item, raw_data):
resolved within the raw data"""
return {target: [person['name']['value']
for _, person
in paths.resolve_refs(item.get(source, {}), raw_data)]
in paths.resolve_refs(item.get(source, {}), raw_data)
if person['name']['value']]
for target, source in paths.REFERENCE_MAPPINGS.items()}


Expand Down

0 comments on commit c2acdd3

Please sign in to comment.