mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Disable Audiobooks
Server doesn't have a set structure yet. This feature is broken atm.
This commit is contained in:
parent
65b71b5885
commit
e42e7e5c90
2 changed files with 4 additions and 4 deletions
|
@ -167,7 +167,7 @@ def listing():
|
||||||
if path:
|
if path:
|
||||||
if xbmc.getCondVisibility('Window.IsActive(Pictures)') and node in ('photos', 'homevideos'):
|
if xbmc.getCondVisibility('Window.IsActive(Pictures)') and node in ('photos', 'homevideos'):
|
||||||
directory(label, path, artwork=artwork)
|
directory(label, path, artwork=artwork)
|
||||||
elif xbmc.getCondVisibility('Window.IsActive(Videos)') and node not in ('photos', 'homevideos', 'music'):
|
elif xbmc.getCondVisibility('Window.IsActive(Videos)') and node not in ('photos', 'homevideos', 'music', 'audiobooks'):
|
||||||
directory(label, path, artwork=artwork, context=context)
|
directory(label, path, artwork=artwork, context=context)
|
||||||
elif xbmc.getCondVisibility('Window.IsActive(Music)') and node in ('music'):
|
elif xbmc.getCondVisibility('Window.IsActive(Music)') and node in ('music'):
|
||||||
directory(label, path, artwork=artwork, context=context)
|
directory(label, path, artwork=artwork, context=context)
|
||||||
|
|
|
@ -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', 'playlists'):
|
if view['Media'] in ('homevideos', 'books', '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', 'playlists'):
|
if view['Media'] in ('homevideos', 'photos', 'books', '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', 'playlists'):
|
if node in ('browse', 'homevideos', 'photos', 'books', '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