added "playlists" to wnodes

This commit is contained in:
Sebastian S 2019-01-24 09:11:09 +01:00
parent 838160557a
commit 51e2880c09

View file

@ -728,7 +728,7 @@ class Views(object):
elif view['Media'] == 'music':
self.window_node(index, view, 'music')
else: # Dynamic entry
if view['Media'] in ('homevideos', 'books', 'audiobooks'):
if view['Media'] in ('homevideos', 'books', 'audiobooks', 'playlists'):
self.window_wnode(windex, view, 'browse')
windex += 1
@ -810,12 +810,12 @@ class Views(object):
''' Similar to window_node, but does not contain music, musicvideos.
Contains books, audiobooks.
'''
if view['Media'] in ('homevideos', 'photos', 'books', 'audiobooks'):
if view['Media'] in ('homevideos', 'photos', 'books', 'audiobooks', 'playlists'):
path = self.window_browse(view, None if node in ('all', 'browse') else node)
else:
path = self.window_path(view, node)
if node in ('browse', 'homevideos', 'photos', 'books', 'audiobooks'):
if node in ('browse', 'homevideos', 'photos', 'books', 'audiobooks', 'playlists'):
window_path = path
else:
window_path = "ActivateWindow(Videos,%s,return)" % path