Temporary workaround for #370

This commit is contained in:
Odd Stråbø 2020-08-25 01:53:46 +02:00
parent 2009f7f27a
commit 7884ac4d88
1 changed files with 5 additions and 0 deletions

View File

@ -167,6 +167,11 @@ class Views(object):
try:
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:
LOG.exception(error)
raise IndexError("Unable to retrieve libraries: %s" % error)