Only show playlists once

This commit is contained in:
Matt 2020-05-15 19:15:01 -04:00
parent 21dd8d95e8
commit 14257f2a30

View file

@ -166,14 +166,11 @@ class Views(object):
def get_libraries(self): def get_libraries(self):
try: try:
libraries = self.server.jellyfin.get_media_folders()['Items'] libraries = self.server.jellyfin.get_views()['Items']
views = self.server.jellyfin.get_views()['Items']
except Exception as error: except Exception as error:
LOG.exception(error) LOG.exception(error)
raise IndexError("Unable to retrieve libraries: %s" % 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 return libraries
def get_views(self): def get_views(self):