mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
fix entrypoints
This commit is contained in:
parent
58533e1c44
commit
2661c54938
2 changed files with 7 additions and 4 deletions
|
@ -35,6 +35,7 @@ class Main:
|
||||||
# Parse parameters
|
# Parse parameters
|
||||||
base_url = sys.argv[0]
|
base_url = sys.argv[0]
|
||||||
addon_handle = int(sys.argv[1])
|
addon_handle = int(sys.argv[1])
|
||||||
|
print sys.argv[2]
|
||||||
params = urlparse.parse_qs(sys.argv[2][1:])
|
params = urlparse.parse_qs(sys.argv[2][1:])
|
||||||
xbmc.log("Parameter string: %s" % sys.argv[2])
|
xbmc.log("Parameter string: %s" % sys.argv[2])
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -69,10 +69,12 @@ def doMainListing():
|
||||||
label = utils.window('Emby.nodes.%s.title' % i)
|
label = utils.window('Emby.nodes.%s.title' % i)
|
||||||
type = utils.window('Emby.nodes.%s.type' % i)
|
type = utils.window('Emby.nodes.%s.type' % i)
|
||||||
#because we do not use seperate entrypoints for each content type, we need to figure out which items to show in each listing.
|
#because we do not use seperate entrypoints for each content type, we need to figure out which items to show in each listing.
|
||||||
#if skinshortcuts is active, we just show all nodes
|
#for now we just only show picture nodes in the picture librarym video nodes in the video library and all nodes in any other window
|
||||||
if path and ((xbmc.getCondVisibility("Window.IsActive(Pictures)") and type=="photos")
|
if path and xbmc.getCondVisibility("Window.IsActive(Pictures)") and type == "photos":
|
||||||
or (xbmc.getCondVisibility("Window.IsActive(VideoLibrary)") and type != "photos")
|
addDirectoryItem(label, path)
|
||||||
or xbmc.getCondVisibility("Window.IsActive(script-skinshortcuts.xml)")):
|
elif path and xbmc.getCondVisibility("Window.IsActive(VideoLibrary)") and type != "photos":
|
||||||
|
addDirectoryItem(label, path)
|
||||||
|
elif path and not xbmc.getCondVisibility("Window.IsActive(VideoLibrary) | Window.IsActive(Pictures) | Window.IsActive(MusicLibrary)"):
|
||||||
addDirectoryItem(label, path)
|
addDirectoryItem(label, path)
|
||||||
|
|
||||||
# some extra entries for settings and stuff. TODO --> localize the labels
|
# some extra entries for settings and stuff. TODO --> localize the labels
|
||||||
|
|
Loading…
Reference in a new issue