* Update isLatest()
Use the canInstall attribute to determine if the release is the latest build.
* use of utils.cast
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
---------
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
* Fallback PlexServer _timeout to TIMEOUT
* Fallback PlexServer query timeout to self._timeout
* Refactor MyPlexAccount, PlexClient query() to use timeout from constructor
* Refactor base fetchItems for pagination
* Use base fetchItems for LibrarySection methods
* Use base fetchItems for MyPlexAccount watchlist
* Use base fetchItems for PlexServer history
* Fix imports
* Use @cached_property in PlexSession.user
* Use @cached_property in PlexServer.library
* Use @cached_property in PlexServer.settings
* Tests: Update clearing plex.settings cache
* Use @cached_property in LibrarySection.totalSize
* Add backports.cached-property==1.0.2; python_version<="3.7" dependency
* Import cached_property from dist or backports
* Add backports.cached-property to requirements_dev.txt
* Remove version pin for backports.cached-property in requirements.txt
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
* Expose callbackError
This makes it easier to catch errors without separately instantiating an AlertListener
* Update docstring.
* Fix docstring
Removed post-argument note, incorporated suggestion.
* Fix various typos
* Fix various typos in tests
* Fix typos in `tests`
* Fix more typos
* Fix hasScalingMatrix test
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
* Fix mediaType argument for PlexServer.agents()
* Cleanup Agent and AgentMediaType attributes
* Add `DeprecationWarning` to `languageCode`
* Make Agent.settings() method public
* Add `DeprecationWarning` to `Agent._settings()`
* Fix parsing Setting.enumValues
* XML attribute for agent settings uses `values` instead of `enumValues`
* Add secure and option attributes to Setting
* Add test for server agents
* Add libtype keyword argument for smart playlists
* Update docs, remove libtype collection from smart playlists/collections
* Cannot create a smart playlist or collection from other collections
* Update smart playlist filter test for libtype
* Add title and sort arguments to server playlists method
* Raise NotFound when retrieving a playlist or collection
* Update tests for collection/playlist NotFound