mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
Fix audiobooks back to video type
Add shortcuts. Audiobook can't be music type otherwise it break resume behavior and it won't play the right item. Has to be video type.
This commit is contained in:
parent
4ecd3fa2f6
commit
2c4ce7e7a4
3 changed files with 12 additions and 4 deletions
|
@ -159,9 +159,9 @@ 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', 'books', 'audiobooks'):
|
elif xbmc.getCondVisibility('Window.IsActive(Videos)') and node not in ('photos', 'homevideos', 'music'):
|
||||||
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'):
|
||||||
directory(label, path, artwork=artwork, context=context)
|
directory(label, path, artwork=artwork, context=context)
|
||||||
elif not xbmc.getCondVisibility('Window.IsActive(Videos) | Window.IsActive(Pictures) | Window.IsActive(Music)'):
|
elif not xbmc.getCondVisibility('Window.IsActive(Videos) | Window.IsActive(Pictures) | Window.IsActive(Music)'):
|
||||||
directory(label, path, artwork=artwork)
|
directory(label, path, artwork=artwork)
|
||||||
|
@ -231,7 +231,7 @@ def browse(media, view_id=None, folder=None, server_id=None):
|
||||||
|
|
||||||
folder = folder.lower() if folder else None
|
folder = folder.lower() if folder else None
|
||||||
|
|
||||||
if folder is None and media in ('homevideos', 'movies'):
|
if folder is None and media in ('homevideos', 'movies', 'books', 'audiobooks'):
|
||||||
return browse_subfolders(media, view_id, server_id)
|
return browse_subfolders(media, view_id, server_id)
|
||||||
|
|
||||||
if folder and folder == 'firstletter':
|
if folder and folder == 'firstletter':
|
||||||
|
|
|
@ -242,7 +242,10 @@ class Player(xbmc.Player):
|
||||||
|
|
||||||
''' Does not seem to work in Leia??
|
''' Does not seem to work in Leia??
|
||||||
'''
|
'''
|
||||||
|
try:
|
||||||
current_file = self.getPlayingFile()
|
current_file = self.getPlayingFile()
|
||||||
|
except Exception:
|
||||||
|
return
|
||||||
|
|
||||||
if current_file in self.played:
|
if current_file in self.played:
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,11 @@ DYNNODES = {
|
||||||
('RecentlyAdded', _(33167)),
|
('RecentlyAdded', _(33167)),
|
||||||
('InProgress', _(33169)),
|
('InProgress', _(33169)),
|
||||||
('Favorite', _(33168))
|
('Favorite', _(33168))
|
||||||
|
],
|
||||||
|
'music': [
|
||||||
|
('all', None),
|
||||||
|
('RecentlyAdded', _(33167)),
|
||||||
|
('Favorite', _(33168))
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue