From 7884ac4d88ac8c760c12146c56caa1fc86910547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Tue, 25 Aug 2020 01:53:46 +0200 Subject: [PATCH] Temporary workaround for #370 --- jellyfin_kodi/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jellyfin_kodi/views.py b/jellyfin_kodi/views.py index ffea641e..3c3c1a7a 100644 --- a/jellyfin_kodi/views.py +++ b/jellyfin_kodi/views.py @@ -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)