small fix for krypton compatibility

This commit is contained in:
marcelveldt 2016-09-23 20:07:27 +02:00
parent 3753369dff
commit bcd8f576df

View file

@ -78,23 +78,15 @@ def doMainListing():
''' because we do not use seperate entrypoints for each content type, ''' because we do not use seperate entrypoints for each content type,
we need to figure out which items to show in each listing. we need to figure out which items to show in each listing.
for now we just only show picture nodes in the picture library 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 ''' video nodes in the video library and all nodes in any other window
'''
'''if path and xbmc.getCondVisibility("Window.IsActive(Pictures)") and node == "photos":
addDirectoryItem(label, path)
elif path and xbmc.getCondVisibility("Window.IsActive(VideoLibrary)")
and node != "photos":
addDirectoryItem(label, path)
elif path and not xbmc.getCondVisibility("Window.IsActive(VideoLibrary) |
Window.IsActive(Pictures) | Window.IsActive(MusicLibrary)"):
addDirectoryItem(label, path)'''
if path: if path:
if xbmc.getCondVisibility("Window.IsActive(Pictures)") and node == "photos": if xbmc.getCondVisibility("Window.IsActive(Pictures)") and node == "photos":
addDirectoryItem(label, path) addDirectoryItem(label, path)
elif xbmc.getCondVisibility("Window.IsActive(VideoLibrary)") and node != "photos": elif xbmc.getCondVisibility("Window.IsActive(Videos)") and node != "photos":
addDirectoryItem(label, path) addDirectoryItem(label, path)
elif not xbmc.getCondVisibility("Window.IsActive(VideoLibrary) | Window.IsActive(Pictures) | Window.IsActive(MusicLibrary)"): elif not xbmc.getCondVisibility("Window.IsActive(Videos) | Window.IsActive(Pictures) | Window.IsActive(Music)"):
addDirectoryItem(label, path) addDirectoryItem(label, path)
# experimental live tv nodes # experimental live tv nodes