mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Use libraries rather than home-screen views
This commit is contained in:
parent
f5d2318b00
commit
a4d2dad11e
1 changed files with 3 additions and 3 deletions
|
@ -166,7 +166,7 @@ class Views(object):
|
|||
def get_libraries(self):
|
||||
|
||||
try:
|
||||
libraries = self.server.jellyfin.get_views()['Items']
|
||||
libraries = self.server.jellyfin.get_media_folders()['Items']
|
||||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
raise IndexError("Unable to retrieve libraries: %s" % error)
|
||||
|
@ -236,8 +236,8 @@ class Views(object):
|
|||
temp_view['Media'] = media
|
||||
self.add_playlist(playlist_path, temp_view, True)
|
||||
self.add_nodes(node_path, temp_view, True)
|
||||
|
||||
index += 1 # Compensate for the duplicate.
|
||||
|
||||
index += 1 # Compensate for the duplicate.
|
||||
else:
|
||||
if view['Media'] in ('movies', 'tvshows', 'musicvideos'):
|
||||
self.add_playlist(playlist_path, view)
|
||||
|
|
Loading…
Reference in a new issue