mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Fix views
Alright get rid of the duplicate in the add-on entrypoint
This commit is contained in:
parent
663fe1f563
commit
2f3d9c4a60
2 changed files with 6 additions and 1 deletions
|
@ -60,6 +60,7 @@ 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):
|
||||
|
@ -68,6 +69,10 @@ 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":
|
||||
|
|
|
@ -402,7 +402,7 @@ class LibrarySync(threading.Thread):
|
|||
# This is only reserved for the detection of grouped views
|
||||
if (grouped_view['Type'] == "UserView" and
|
||||
grouped_view.get('CollectionType') == mediatype and
|
||||
grouped_view['Id'] not in grouped_view.get('Path', "")):
|
||||
grouped_view['Id'] in grouped_view.get('Path', "")):
|
||||
# Take the name of the userview
|
||||
foldername = grouped_view['Name']
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue