Temporary workaround for #370

This commit is contained in:
Odd Stråbø 2020-08-25 01:53:46 +02:00
parent 2009f7f27a
commit 7884ac4d88

View file

@ -167,6 +167,11 @@ class Views(object):
try: try:
libraries = self.server.jellyfin.get_media_folders()['Items'] libraries = self.server.jellyfin.get_media_folders()['Items']
library_ids = [x['Id'] for x in libraries]
for view in self.server.jellyfin.get_views()['Items']:
if view['Id'] not in library_ids:
libraries.append(view)
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)