From ccd953704eb92ca006b2e1f69fd96d21a221c9c7 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 19 Jul 2018 15:02:21 +0200 Subject: [PATCH] Only show Plex libraries in the applicable Kodi media category --- resources/lib/entrypoint.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 9b4caea2..2ea3e5db 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -145,8 +145,12 @@ def show_main_menu(content_type=None): # nodes in the video library and all nodes in any other window if node_type == 'photos' and content_type == 'image': directory_item(label, path) - elif (node_type != 'photos' and - content_type not in ('image', 'audio')): + elif node_type == 'albums' and content_type == 'audio': + directory_item(label, path) + elif node_type in ('movies', + 'tvshows', + 'homevideos', + 'musicvideos') and content_type == 'video': directory_item(label, path) # Plex Watch later