jjlawren
caf3910057
Ignore whitespace in library section lookup ( #888 )
2022-02-26 20:31:54 -08: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
meisnate12
2f101e3899
Add LabelMixin to Season, Episode, Artist, and Track objects ( #872 )
...
* Add LabelMixin to Episode class
* Add test_mixins.edit_label(episode) test
* Add Label Mixin to Season, Artist,and Track
* fix tests
* Load manual FilteringFields for labels
* Load manual FilteringFilters for labels
Co-authored-by: Elan Ruusamäe <glen@pld-linux.org>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2022-02-26 17:32:18 -08:00
jjlawren
9b3b65bcaf
Support global hubs ( #873 )
...
* Get global hubs
* Add hub filtering arguments
* Simplify
2022-01-23 20:40:35 -08:00
JonnyWong16
b89bd23652
Change MusicSection.stations()
to return Playlist
objects ( #871 )
...
* Fix library stations
* `LibrarySection.stations()` returns a list of `Playlist` station objects
* Add test for MusicSection stations
2022-01-23 20:40:04 -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
JonnyWong16
d2c849fa5e
Improve getGuid method ( #862 )
...
* Improve getGuid method
* Update getGuid test
2022-01-23 16:13:30 -08:00
JonnyWong16
fcbea70549
Add methods to lock and unlock a field for all items in a library ( #861 )
...
* Add plex folder to .gitignore
* Add method to lock/unlock a field for all items in a library
* Add test to lock/unlock all posters in a library
2022-01-23 16:11:20 -08:00
blacktwin
34f0125e12
docstring line
2022-01-05 22:54:57 -05:00
blacktwin
0882b8f9fc
minor docstring update
2022-01-05 22:50:27 -05:00
blacktwin
624af2e4c5
remove use of Path
objects for adding and removing locations
2022-01-05 09:06:35 -05:00
blacktwin
4f340d0ce4
var renaming for consistency
2022-01-03 16:57:29 -05:00
blacktwin
54897d2e9e
This reloading was removed in #855 .
2022-01-03 16:56:38 -05:00
blacktwin
f8e2b06998
unexpected unindent
2021-12-20 00:44:45 -05:00
blacktwin
55279799da
docstring indention fixes
2021-12-20 00:33:21 -05:00
blacktwin
7390a9ba0c
copy/paste oops
2021-12-19 23:09:06 -05:00
blacktwin
9586d8f09d
fix up for addLocations, only check paths that are being added not existing paths.
2021-12-19 23:09:06 -05:00
blacktwin
4c519c62dc
remove underscores
2021-12-19 23:09:06 -05:00
blacktwin
c2facf0144
Merge branch 'master' into libraryEditUpdates
2021-12-19 22:20:13 -05:00
blacktwin
5cf95e53d0
we are unable to remove all locations from a library
...
the result of posting this request is nothing
to reduce confusion add a check for locations size after removals
2021-12-19 22:05:58 -05:00
blacktwin
d1b190375a
fix up removeLocation method
2021-12-19 22:04:05 -05:00
blacktwin
d04bf034f7
Use .get() for kwargs location for when not editing library locations
...
build location list inside path checking loop
2021-12-19 22:03:32 -05:00
blacktwin
1aa704324e
add paths inside valid path check loop
2021-12-19 21:20:30 -05:00
blacktwin
824be407d0
remove path check on str in add() method
2021-12-19 21:11:56 -05:00
blacktwin
d3b0d7b09b
remove list check in add() method
2021-12-19 21:09:49 -05:00
blacktwin
7e14d2d315
check for valid paths in addLocation and removeLocation methods
2021-12-18 23:48:53 -05:00
blacktwin
ba490c7f67
refactor edit method for correcting location param
2021-12-18 23:47:11 -05:00
JonnyWong16
a8136d2776
Change LibrarySection.reload() to reload in-place ( #855 )
...
* Fix LibrarySection reload in-place to mimic PlexObject reload
* Don't reload LibrarySection after edit
* Also mimics PlexObject.edit()
* Update library section edit test
2021-11-20 16:35:37 -08:00
JonnyWong16
8815cda444
Add totalDuration and totalStorage properties to LibrarySection ( #851 )
...
* Add LibrarySection properties totalDuration and totalStorage
* Add tests for LibrarySection totalDuration and totalStorage
2021-11-20 16:29:08 -08:00
blacktwin
8cf4f013c4
refactor removing locations
2021-10-26 18:12:42 -04:00
blacktwin
617206e823
adding browsable checks for adding and removing paths
2021-10-26 18:02:10 -04:00
blacktwin
84bd5159d6
updating docstring for new acceptable class
2021-10-26 18:00:11 -04:00
blacktwin
cb1eebd37e
change acceptable class for adding and removing locations
2021-10-26 17:59:42 -04:00
blacktwin
cd04cb48ef
change edit method to use new method for checking path
2021-10-26 17:52:44 -04:00
blacktwin
fbd5d10e41
update doc to mention list support for paths
2021-10-26 17:50:34 -04:00
blacktwin
b14b48f9f8
check if path exists for list of paths
2021-10-26 17:50:07 -04:00
blacktwin
61d93e78ba
refactor for new method to check if path exists
2021-10-26 17:49:40 -04:00
blacktwin
9764ad4038
removing example
2021-10-22 17:02:38 -04:00
JonnyWong16
a3178f3ac3
Merge pull request #831 from JonnyWong16/feature/includeGuids
...
Automatically retrieve external guids from libraries using includeGuids
2021-10-04 13:56:11 -07:00
blacktwin
7e04b9fc4e
Library.edit method docstring update with example
2021-09-27 10:19:28 -04:00
blacktwin
25fbf6b220
adding convenience methods for adding and removing locations from a library
2021-09-27 10:18:59 -04:00
blacktwin
e8711e9b35
update to Library.edit method to allow editing locations
2021-09-27 10:17:48 -04:00
blacktwin
75c4886b01
update to Library.add method to allow for multiple locations
2021-09-27 10:16:53 -04:00
JonnyWong16
105a156980
Add example to getGuid doc string
2021-09-26 19:04:26 -07:00
JonnyWong16
49ce2f9bb4
Refactor getWebURL
2021-09-26 15:23:35 -07:00
JonnyWong16
65d538c976
Update doc string for get and getGuid with raises exception
2021-09-15 15:47:21 -07:00
JonnyWong16
222fe04a08
Add method to get media item using a guid
2021-09-15 15:47:21 -07:00
JonnyWong16
bc6afebed9
Add includeGuids parameter when retrieving library results
2021-09-15 15:38:54 -07:00
JonnyWong16
17ab4ce252
Add getWebURL for LibrarySection and library hubs
2021-08-25 18:10:11 -07: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