Skip to content

Commit

Permalink
✨ Allow multiple infolabel in get_container_labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Sep 29, 2023
1 parent 560f62c commit 5bc1faa
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions resources/lib/lists/filterdir.py
Expand Up @@ -390,14 +390,15 @@ def _make_item(title):
if not numitems:
continue
for x in range(numitems):
titles = xbmc.getInfoLabel(f'Container({container}).ListItemAbsolute({x}).{infolabel}')
if not titles:
continue
for title in titles.split(separator):
item = _make_item(title)
if not item:
for il in infolabel.split():
titles = xbmc.getInfoLabel(f'Container({container}).ListItemAbsolute({x}).{il}')
if not titles:
continue
items.append(item)
for title in titles.split(separator):
item = _make_item(title)
if not item:
continue
items.append(item)

self.add_items(items)

Expand Down

0 comments on commit 5bc1faa

Please sign in to comment.