3.1.05-fix audiobook

Audiobooks will now only appear under music to prevent visual bugs
This commit is contained in:
angelblue05 2018-09-08 04:04:38 -05:00
parent 2fa6b34039
commit 01a82eee2d

View file

@ -154,7 +154,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', 'books', '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', 'books', 'audiobooks'): elif xbmc.getCondVisibility('Window.IsActive(Music)') and node in ('music', 'books', 'audiobooks'):
directory(label, path, artwork=artwork, context=context) directory(label, path, artwork=artwork, context=context)