mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Only show playlists once
This commit is contained in:
parent
21dd8d95e8
commit
14257f2a30
1 changed files with 1 additions and 4 deletions
|
@ -166,14 +166,11 @@ class Views(object):
|
|||
def get_libraries(self):
|
||||
|
||||
try:
|
||||
libraries = self.server.jellyfin.get_media_folders()['Items']
|
||||
views = self.server.jellyfin.get_views()['Items']
|
||||
libraries = self.server.jellyfin.get_views()['Items']
|
||||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
raise IndexError("Unable to retrieve libraries: %s" % error)
|
||||
|
||||
libraries.extend([x for x in views if x['Id'] not in [y['Id'] for y in libraries]])
|
||||
|
||||
return libraries
|
||||
|
||||
def get_views(self):
|
||||
|
|
Loading…
Reference in a new issue