Only show Plex libraries in the applicable Kodi media category
This commit is contained in:
parent
1721aad580
commit
ccd953704e
1 changed files with 6 additions and 2 deletions
|
@ -145,8 +145,12 @@ def show_main_menu(content_type=None):
|
||||||
# nodes in the video library and all nodes in any other window
|
# nodes in the video library and all nodes in any other window
|
||||||
if node_type == 'photos' and content_type == 'image':
|
if node_type == 'photos' and content_type == 'image':
|
||||||
directory_item(label, path)
|
directory_item(label, path)
|
||||||
elif (node_type != 'photos' and
|
elif node_type == 'albums' and content_type == 'audio':
|
||||||
content_type not in ('image', 'audio')):
|
directory_item(label, path)
|
||||||
|
elif node_type in ('movies',
|
||||||
|
'tvshows',
|
||||||
|
'homevideos',
|
||||||
|
'musicvideos') and content_type == 'video':
|
||||||
directory_item(label, path)
|
directory_item(label, path)
|
||||||
|
|
||||||
# Plex Watch later
|
# Plex Watch later
|
||||||
|
|
Loading…
Add table
Reference in a new issue