Commit graph

213 commits

Author SHA1 Message Date
ReenigneArcher
ec4b779ca8
style: fix F812 rule (#1221) 2023-08-27 14:10:18 -07:00
JonnyWong16
6471582c92
Add method to retrieve Plex server identity (#1204)
* Add server identity

* Add test for server identity
2023-08-27 12:06:40 -07:00
JonnyWong16
ba0c27c6ef
Remove support for Python 3.7 (#1198)
* Remove support for Python 3.7

* Update CI workflow

* Manually update dependencies
2023-07-27 20:05:40 -07:00
JonnyWong16
d94b6efc41
Change server continue watching endpoint (#1169) 2023-07-27 13:52:08 -07:00
JonnyWong16
cde1e04495
Refactor fetchItems for pagination (#1143)
* 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
2023-05-24 14:50:30 -07:00
JonnyWong16
644bb3a057
Allow using MyPlexUser object for switchUser (#1154) 2023-05-24 13:55:36 -07:00
JonnyWong16
37b37f1af0
Fix code block doc string formatting (#1144) 2023-05-24 13:55:22 -07:00
JonnyWong16
b4c463aff8
Add support for Continue Watching hubs (#1131)
* Add methods to retrieve continue watching items

* Add methods to remove movies/episodes from continue watching

* Add tests for continue watching
2023-05-24 12:03:28 -07:00
meisnate12
abc3464de3
Raise Exceptions on bad Download Responses (#1109)
* expose showstatus to downloadDatabases and downloadLogs

* throw errors for bad download responses
2023-05-24 11:37:37 -07:00
JonnyWong16
0080cc8964
Add blendColor parameter to transcodeImage() (#1121)
* Add `blendColor` to `transcodeImage()`

* Update `transcodeImage()` tests
2023-03-09 16:18:27 -08:00
Elan Ruusamäe
b056e9d60b
Fix: Inherit session when creating internal PlexServer objects (#1069)
* Make myPlexAccount inherit session

* Pass session to _toOnlineMetadata PlexServer
2022-12-21 13:01:37 -08:00
Elan Ruusamäe
7580fc84a9
Use cached_property decorator (#1065)
* 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>
2022-12-21 11:51:45 -08:00
JonnyWong16
9dbb2e5169
Create music playlist from m3u file (#1055)
* Create music playlists from m3u files

* Add test for playlist m3u import

* Add createCollection examples
2022-12-21 11:32:43 -08:00
JonnyWong16
9b0c8e5fd3
More f-string changes (#1025) 2022-11-08 13:40:18 -08:00
JonnyWong16
020a32f2b8
Update PlexAPI to f-strings (#1000)
* Update plexapi to f-strings

* Update tests to f-strings
2022-08-27 22:56:01 -07:00
JonnyWong16
c8854c64c9
Add return self to various methods to support chaining (#986)
* Add return self to various methods to support chaining

* Fix runButlerTask test
2022-08-26 14:44:50 -07:00
Rui Carmo
a7e87a583f
Expose callbackError parameter in PlexServer.startAlertListener() (#985)
* Expose callbackError

This makes it easier to catch errors without separately instantiating an AlertListener

* Update docstring.

* Fix docstring

Removed post-argument note, incorporated suggestion.
2022-08-05 19:52:09 -07:00
JonnyWong16
b14a653a3b
Fix PlexServer.isBrowsable(path) when running Plex API on a different OS (#933) 2022-05-16 19:58:52 -07:00
JonnyWong16
153ef66df0
Add method to manually run butler tasks (#916)
* Add butler tasks

* Add tests for butler tasks
2022-05-16 19:51:39 -07:00
Kian-Meng Ang
398c058f18
Fix typos (#939) 2022-05-16 15:39:42 -05:00
ReenigneArcher
3917b335ca
Fix various typos (#880)
* 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>
2022-02-26 19:26:08 -08:00
JonnyWong16
0620eb4bf0
Fix Agent object settings (#864)
* 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
2022-01-23 16:15:10 -08:00
blacktwin
c2facf0144
Merge branch 'master' into libraryEditUpdates 2021-12-19 22:20:13 -05:00
JonnyWong16
34a42185ac
Update server transcodeImage method (#845)
* Update server transcodeImage method

* Update server transcodeImage tests
2021-11-20 13:53:00 -08:00
blacktwin
921356099e create isBrowseable method in server.PlexServer 2021-10-26 17:47:34 -04:00
JonnyWong16
49ce2f9bb4
Refactor getWebURL 2021-09-26 15:23:35 -07:00
JonnyWong16
e10f96a529
Add getPlaylistsWebURL for the server playlists page 2021-08-25 18:10:11 -07:00
JonnyWong16
42260aa1b6
Add libtype argument for creating smart playlists (#799)
* 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
2021-07-26 20:46:30 -05:00
JonnyWong16
6cacc4a55a
Add playlist title search and sorting (#782)
* Add title and sort arguments to server playlists method

* Raise NotFound when retrieving a playlist or collection

* Update tests for collection/playlist NotFound
2021-07-26 20:45:58 -05:00
JonnyWong16
7e8c93dcc7
Merge remote-tracking branch 'upstream/master' into bugfix/cleanup_findItems 2021-06-06 14:50:39 -07:00
JonnyWong16
ab7ed6dee6
Merge pull request #763 from JonnyWong16/feature/smart_playlists_collections
Fix smart playlists and add support for smart collections
2021-06-06 12:15:12 -07:00
JonnyWong16
eafdccaddc
Merge pull request #758 from JonnyWong16/feature/claim_server
Add method to claim and unclaim server
2021-06-06 12:14:46 -07:00
JonnyWong16
c84215df7a
Move _uriRoot() to PlexServer 2021-05-29 18:22:27 -07:00
JonnyWong16
06da110203
Clean up doc strings 2021-05-29 17:58:55 -07:00
JonnyWong16
95c1be28bc
Add PlexServer.createCollection() method 2021-05-29 16:57:41 -07:00
JonnyWong16
a1861c5595
Add retrieving server playlists by type 2021-05-29 16:57:38 -07:00
JonnyWong16
a131482cdc
Update creating smart playlist using search filters 2021-05-29 16:57:36 -07:00
JonnyWong16
0095e83f75
Cleanup utils imports 2021-05-26 19:45:12 -07:00
JonnyWong16
0f680233ab
Merge pull request #749 from JonnyWong16/feature/switch_user
Add method to switch users for a PlexServer instance
2021-05-23 19:03:27 -07:00
JonnyWong16
95877dd1ee Add methods to claim and unclaim a server 2021-05-22 14:44:40 -07:00
Alindil
17daa1be72
Revert "Update server.py"
This reverts commit 73deabd97f.
2021-05-14 16:30:39 -07:00
JonnyWong16
43822fd42c
Deprecate PlexServer.optimizedItem 2021-05-14 16:28:59 -07:00
JonnyWong16
35729a3a0a
Add optional session and timeout to switchUser 2021-05-11 17:03:16 -07:00
JonnyWong16
b0a9fb7ebe
Fix switchUser keyword arguments 2021-05-11 16:50:30 -07:00
JonnyWong16
a40063630d
Add method to switch users for a PlexServer 2021-05-11 16:38:50 -07:00
Alindil
73deabd97f
Update server.py
There can be several videos in an optimization. In the current code we only loop on one
2021-05-06 15:28:05 +02:00
JonnyWong16
1d4e911ef5
Add clientIdentifier attribute to SystemDevice (#703)
* Add clientIdentifier attribute to SystemDevice

* Add test for SystemDevice clientIdentifier

* Add methods to return a specific SystemAccount or SystemDevice by ID

* Update tests for SystemAccounts and SystemDevices
2021-03-22 14:35:57 -05:00
JonnyWong16
811f661576
Add LibrarySection.hubSearch() 2021-03-11 11:28:55 -08:00
Steffen Fredriksen
2954fdb811
Merge pull request #666 from JonnyWong16/bugfix/server_update
Rename server checkForUpdate
2021-02-24 17:10:37 +01:00
JonnyWong16
5803af930c
Move collections to a new module 2021-02-14 22:33:03 -08:00