mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
commit
52692316fd
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue