Skip to content

Commit

Permalink
fix: ignore empty cast names
Browse files Browse the repository at this point in the history
  • Loading branch information
Falke-Design committed Dec 31, 2023
1 parent fd5f40f commit 99f473b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/common/kodi_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def set_video_info_tag(info: Dict[str, str], video_info_tag: xbmc.InfoTagVideo):
# From Kodi v20 ListItem.setInfo is deprecated, we need to use the methods of InfoTagVideo object
# "Cast" and "Tag" keys need to be converted
cast_names = info.pop('Cast', [])
video_info_tag.setCast([xbmc.Actor(name) for name in cast_names])
video_info_tag.setCast([xbmc.Actor(name) for name in cast_names if name])
tag_names = info.pop('Tag', [])
video_info_tag.setTagLine(' / '.join(tag_names))
for key, value in info.items():
Expand Down

0 comments on commit 99f473b

Please sign in to comment.