Fix music and picture nodes pointing to video library
This commit is contained in:
parent
65e377a49f
commit
34f1c7d1b9
1 changed files with 10 additions and 2 deletions
|
@ -261,8 +261,16 @@ class Section(object):
|
||||||
utils.window('%s.type' % self.node, value=self.content)
|
utils.window('%s.type' % self.node, value=self.content)
|
||||||
utils.window('%s.content' % self.node, value=path)
|
utils.window('%s.content' % self.node, value=path)
|
||||||
# .path leads to all elements of this library
|
# .path leads to all elements of this library
|
||||||
|
if self.section_type in v.PLEX_VIDEOTYPES:
|
||||||
utils.window('%s.path' % self.node,
|
utils.window('%s.path' % self.node,
|
||||||
value='ActivateWindow(Videos,%s,return)' % path)
|
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))
|
utils.window('%s.id' % self.node, value=str(self.section_id))
|
||||||
# To let the user navigate into this node when selecting widgets
|
# To let the user navigate into this node when selecting widgets
|
||||||
utils.window('%s.addon_index' % self.node, value=addon_index)
|
utils.window('%s.addon_index' % self.node, value=addon_index)
|
||||||
|
|
Loading…
Reference in a new issue