mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Merge pull request #371 from oddstr13/just-some-patchwork
Temporary workaround for #370
This commit is contained in:
commit
37d6f529fd
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue