Skip to content

Commit

Permalink
Allow category label to be inherited
Browse files Browse the repository at this point in the history
- Must be contained in directory uri to be parsed in new Context params
  • Loading branch information
MoojMidge committed Jan 30, 2024
1 parent be0310e commit c9144f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resources/lib/youtube_plugin/kodion/items/directory_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ def set_name(self, name, category_label=None):
return name

def set_category_label(self, label):
if label == '__inherit__':
self._category_label = None
return

if self._category_label and self._category_label != label:
uri = self.get_uri()
self.set_uri(uri.replace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, context, current_page=1, image=None, fanart=None):
new_params
),
image=image,
category_label=False)
category_label='__inherit__')

if fanart:
self.set_fanart(fanart)
Expand Down

0 comments on commit c9144f8

Please sign in to comment.