mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
Merge pull request #180 from sualfred/develop
added "playlists" to wnodes
This commit is contained in:
commit
65b71b5885
1 changed files with 18 additions and 18 deletions
|
@ -728,7 +728,7 @@ class Views(object):
|
||||||
elif view['Media'] == 'music':
|
elif view['Media'] == 'music':
|
||||||
self.window_node(index, view, 'music')
|
self.window_node(index, view, 'music')
|
||||||
else: # Dynamic entry
|
else: # Dynamic entry
|
||||||
if view['Media'] in ('homevideos', 'books', 'audiobooks'):
|
if view['Media'] in ('homevideos', 'books', 'audiobooks', 'playlists'):
|
||||||
self.window_wnode(windex, view, 'browse')
|
self.window_wnode(windex, view, 'browse')
|
||||||
windex += 1
|
windex += 1
|
||||||
|
|
||||||
|
@ -810,12 +810,12 @@ class Views(object):
|
||||||
''' Similar to window_node, but does not contain music, musicvideos.
|
''' Similar to window_node, but does not contain music, musicvideos.
|
||||||
Contains books, audiobooks.
|
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)
|
path = self.window_browse(view, None if node in ('all', 'browse') else node)
|
||||||
else:
|
else:
|
||||||
path = self.window_path(view, node)
|
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
|
window_path = path
|
||||||
else:
|
else:
|
||||||
window_path = "ActivateWindow(Videos,%s,return)" % path
|
window_path = "ActivateWindow(Videos,%s,return)" % path
|
||||||
|
|
Loading…
Reference in a new issue