Merge pull request #175 from pkkid/zomg11

Fix bug for shared librarys.
This commit is contained in:
Michael Shepanski 2017-08-19 19:10:21 -04:00 committed by GitHub
commit 52692316fd

View file

@ -162,9 +162,10 @@ class PlexServer(PlexObject):
data = self.query(Library.key)
self._library = Library(self, data)
except BadRequest:
data = self.query('/library/sections/')
# Only the owner has access to /library
# so just return the library without the data.
return Library(self, {})
return Library(self, data)
return self._library
@property