mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-17 05:18:26 +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)
|
data = self.query(Library.key)
|
||||||
self._library = Library(self, data)
|
self._library = Library(self, data)
|
||||||
except BadRequest:
|
except BadRequest:
|
||||||
|
data = self.query('/library/sections/')
|
||||||
# Only the owner has access to /library
|
# Only the owner has access to /library
|
||||||
# so just return the library without the data.
|
# so just return the library without the data.
|
||||||
return Library(self, {})
|
return Library(self, data)
|
||||||
return self._library
|
return self._library
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Add table
Reference in a new issue