Merge pull request #371 from oddstr13/just-some-patchwork

Temporary workaround for #370
This commit is contained in:
Abby 2020-08-25 01:05:24 +01:00 committed by GitHub
commit 37d6f529fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)