From 34f1c7d1b9b5ed8c47f631d3fb5b8496911b6a55 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 14 Apr 2019 11:03:05 +0200 Subject: [PATCH] Fix music and picture nodes pointing to video library --- resources/lib/library_sync/sections.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/lib/library_sync/sections.py b/resources/lib/library_sync/sections.py index 214080a7..839923f8 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -261,8 +261,16 @@ class Section(object): utils.window('%s.type' % self.node, value=self.content) utils.window('%s.content' % self.node, value=path) # .path leads to all elements of this library - utils.window('%s.path' % self.node, - value='ActivateWindow(Videos,%s,return)' % path) + if self.section_type in v.PLEX_VIDEOTYPES: + utils.window('%s.path' % self.node, + value='ActivateWindow(videos,%s,return)' % path) + elif self.section_type == v.PLEX_TYPE_ARTIST: + utils.window('%s.path' % self.node, + value='ActivateWindow(music,%s,return)' % path) + else: + # Pictures + utils.window('%s.path' % self.node, + value='ActivateWindow(pictures,%s,return)' % path) utils.window('%s.id' % self.node, value=str(self.section_id)) # To let the user navigate into this node when selecting widgets utils.window('%s.addon_index' % self.node, value=addon_index)