mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 21:56:13 +00:00
Fix views duplicate at the root
This commit is contained in:
parent
2f3d9c4a60
commit
1388f4b27b
2 changed files with 18 additions and 17 deletions
|
@ -60,7 +60,6 @@ def doMainListing():
|
|||
xbmcplugin.setContent(int(sys.argv[1]), 'files')
|
||||
# Get emby nodes from the window props
|
||||
embyprops = utils.window('Emby.nodes.total')
|
||||
nodes = []
|
||||
if embyprops:
|
||||
totalnodes = int(embyprops)
|
||||
for i in range(totalnodes):
|
||||
|
@ -69,10 +68,6 @@ def doMainListing():
|
|||
path = utils.window('Emby.nodes.%s.content' % i)
|
||||
label = utils.window('Emby.nodes.%s.title' % i)
|
||||
type = utils.window('Emby.nodes.%s.type' % i)
|
||||
if label not in nodes:
|
||||
nodes.append(label)
|
||||
else: # Avoid duplicates
|
||||
continue
|
||||
#because we do not use seperate entrypoints for each content type, we need to figure out which items to show in each listing.
|
||||
#for now we just only show picture nodes in the picture library video nodes in the video library and all nodes in any other window
|
||||
if path and xbmc.getCondVisibility("Window.IsActive(Pictures)") and type == "photos":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue