Commit graph

403 commits

Author SHA1 Message Date
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
JonnyWong16
456a8a53ab
Merge pull request #788 from JonnyWong16/feature/search_objects
Add ability to use FilterChoice and FilteringSort objects in library search
2021-07-16 09:21:55 -07:00
JonnyWong16
82fa178952
Merge pull request #781 from JonnyWong16/feature/parse_smart_filter
Add ability to parse the smart filters from collections and playlists
2021-07-16 09:21:10 -07:00
JonnyWong16
be1b6eb646
Add ability to use FilteringSort objects for library search sort 2021-07-04 19:21:44 -07:00
JonnyWong16
293207e186
Add ability to use FilterChoice objects for library search tags 2021-07-04 18:58:35 -07:00
JonnyWong16
91cb388dcb
Don't format sort direction if not present 2021-06-18 15:02:54 -07:00
JonnyWong16
a5dfbe6eb7
Add manual viewUpdatedAt sort field for photos 2021-06-18 14:04:14 -07:00
JonnyWong16
176aa36729
Allow blank sort direction
Some sort fields don't follow the `defaultDirection` if the sort direction is not specified (e.g. `year` returns `year:asc` instead of the default `year:desc`). Allow blank `sortDir` and let the server handle it.
2021-06-18 14:03:43 -07:00
JonnyWong16
a2bfc9e92f
Remove manual artist last played field 2021-06-14 08:38:09 -07:00
JonnyWong16
cfefbafc93
Remove manual random sort 2021-06-14 08:37:38 -07:00
JonnyWong16
7e8c93dcc7
Merge remote-tracking branch 'upstream/master' into bugfix/cleanup_findItems 2021-06-06 14:50:39 -07:00
JonnyWong16
2cd29f435a
Add method to get a collection or playlist by title in a library 2021-05-29 16:57:41 -07:00
JonnyWong16
95c1be28bc
Add PlexServer.createCollection() method 2021-05-29 16:57:41 -07:00
JonnyWong16
a435a5a9fa
Add limit to search filter 2021-05-29 16:57:40 -07:00
JonnyWong16
7d90fd60e8
Add library alias to create playlist 2021-05-29 16:57:39 -07:00
JonnyWong16
a131482cdc
Update creating smart playlist using search filters 2021-05-29 16:57:36 -07:00
JonnyWong16
3fc69a3709
Refactor usage of findItems 2021-05-24 17:28:11 -07:00
JonnyWong16
ada326bca1
Add recently added methods for each libtype 2021-05-23 21:15:18 -07:00
JonnyWong16
c76b2d4027
Merge remote-tracking branch 'upstream/master' into feature/multi_sort 2021-05-23 20:39:08 -07:00
JonnyWong16
a9597a9008
Merge remote-tracking branch 'upstream/master' into feature/plex_tv 2021-05-23 19:12:38 -07:00
JonnyWong16
b9a9abb129
Add manual collection sorts and fields 2021-05-20 20:12:57 -07:00
JonnyWong16
7b8757419b
Update search doc strings fro advanced filters 2021-05-16 13:26:41 -07:00
JonnyWong16
900dd3e7b9
Add support for advanced search filters 2021-05-16 13:26:21 -07:00
JonnyWong16
89e6d2d6f3
Fix matching sort key 2021-05-16 11:30:03 -07:00
JonnyWong16
814efb1def
Fix matching field when validating filter field 2021-05-15 23:12:19 -07:00
JonnyWong16
7146587b0d
Add additional filter fields per media type 2021-05-15 22:40:29 -07:00
JonnyWong16
3d20f307f4
Add additional manual sorts and fields 2021-05-15 18:09:52 -07:00
JonnyWong16
0b45e88d41
Allow predefined Plex multi-sorts 2021-05-15 16:04:05 -07:00
JonnyWong16
4f29eca311
Fix default random sort direction 2021-05-15 11:34:33 -07:00
JonnyWong16
6d4e7bed95 Add random sorting option 2021-05-15 11:25:42 -07:00
JonnyWong16
2af4f6d3eb
Allow for multi-sort in library search 2021-05-15 11:09:32 -07:00
JonnyWong16
006aee2483
Fix typo in library show agent doc string 2021-05-09 21:18:54 -07:00
JonnyWong16
75c8b9879b
Add ability to return the list of items from any tag filter 2021-05-09 20:03:12 -07:00
JonnyWong16
a82030aaa9
Merge pull request #722 from meisnate12/bugfix/library_advance_settings
Fix editing advanced settings without integer values
2021-05-09 19:42:12 -07:00
Elan Ruusamäe
aa8838ce7d
Fix spelling error for container_start value check (#727) 2021-04-18 22:05:19 -05:00
meisnate12
a999778f52 removed redundant value 2021-04-06 23:43:42 -04:00
meisnate12
4307a99511 fix for advanced settings that dont use ints 2021-04-06 16:01:45 -04:00
JonnyWong16
19fa6c1e50
Allow relative dates for search filters (#717)
* Add validation for relative date search filter values

* Update search doc strings for searching using relative dates

* Update library search tests for relative dates

* Fix relative date search test

* Automatically format negative sign in relative dates

* Fix relative date search test
2021-04-05 15:46:26 -05:00
JonnyWong16
2e7ae1f3ec
Fix LibrarySection totalViewSize for photo libraries (#715) 2021-04-05 14:36:19 -05:00
JonnyWong16
1c521308e2
Add totalViewSize method to LibrarySection and search bug fixes (#712)
* Fix more library section ID cast to int

* Add method to return library size for specific libtypes

* Add test for library totalViewSize

* Fix totalViewSize test episode count

* Don't need to use library _totalSize cache

* Validate title search arg as a filter kwarg

* Only validate search title if it is a list

* Update doc string for totalViewSize
2021-03-24 20:58:12 -05:00
JonnyWong16
f92d9d5e8c
Fix myplex share section ID cast to int (#708)
* Fix myplex share section ID cast to int

* Fix typo in search doc string
2021-03-22 14:31:54 -05:00
JonnyWong16
61d73be8a3
Don't use utils.cast for search values 2021-03-19 16:27:16 -07:00
JonnyWong16
3422bb7fb8
Separate search function for flake8 complexity 2021-03-15 10:06:54 -07:00
JonnyWong16
357818a857
Use separate totalViewSize cache for searching
Fixes #695
totalSize was getting overwritten when using search with a different libtype. This makes totalSize independant from search.
2021-03-15 10:03:01 -07:00
JonnyWong16
684bbde89b
Change search break condition
Fixes #694
When using a PlexAPI operator, fetchItems may return zero results in the first container causing the loop to break early. This changes the break condition to check if the container exceeds the total number of items therefore there will be no more items to fetch.
2021-03-15 09:33:46 -07:00
JonnyWong16
e1ab49f20e
Fix & search operator 2021-03-14 23:34:56 -07:00
JonnyWong16
ea187536c2
Print available libtypes and field types for exception 2021-03-14 15:14:24 -07:00
JonnyWong16
8cc90fc850
Fix libtype for listFilterChoices 2021-03-14 15:05:37 -07:00
JonnyWong16
5bff309a32
More search doc string updates 2021-03-13 11:07:27 -08:00
JonnyWong16
8adedd6b3b
Add deprecated functions filterFields and listChoices 2021-03-12 10:29:40 -08:00
JonnyWong16
4b25d4ab88
Print available filters when raising NotFound 2021-03-12 10:08:14 -08:00
JonnyWong16
b9840eee5c
Update search docs formatting 2021-03-12 09:18:51 -08:00
JonnyWong16
ba98669610
Update search doc string 2021-03-12 00:03:17 -08:00
JonnyWong16
f90b5ac70a
Update search doc string with plexapi operator examples 2021-03-11 23:22:46 -08:00
JonnyWong16
618ed22676
Update search doc string with examples 2021-03-11 22:44:54 -08:00
JonnyWong16
93a5ab6d6d
Fix filter libtype fallback 2021-03-11 22:44:16 -08:00
JonnyWong16
cbdda0b80e
Allow datetime object for filtering date values 2021-03-11 21:14:46 -08:00
JonnyWong16
da5699cd0d
Fix joining search params 2021-03-11 20:32:07 -08:00
JonnyWong16
86072c2cfb
Move libtype to validate functions 2021-03-11 17:43:16 -08:00
JonnyWong16
2c8c5277b5
Fix build docs 2021-03-11 16:36:29 -08:00
JonnyWong16
5cece7d1ce
Change unknown search filters to NotFound 2021-03-11 16:33:34 -08:00
JonnyWong16
08ea6cad4c
Fallback to assume libtype for a filter 2021-03-11 16:33:03 -08:00
JonnyWong16
cd5b0e3898
Update doc strings for list filter methods 2021-03-11 15:37:52 -08:00
JonnyWong16
e5607e10db
Improve matching of libtype for filter field and sort 2021-03-11 15:19:08 -08:00
JonnyWong16
6e501728a0
Cast librarySectionID to int 2021-03-11 13:27:08 -08:00
JonnyWong16
6d4c8e5ea1
Fix flake8 search complexity 2021-03-11 13:12:41 -08:00
JonnyWong16
b3dd52680e
Update validate value exception message 2021-03-11 13:09:11 -08:00
JonnyWong16
95c47c67c7
Remove unused import 2021-03-11 13:06:29 -08:00
JonnyWong16
0de2349113
Rename validateSortField 2021-03-11 13:06:16 -08:00
JonnyWong16
9e063bfcd6
Separate validate functions 2021-03-11 13:04:04 -08:00
JonnyWong16
c4f4743325
Fix sorting with libtype 2021-03-11 12:24:02 -08:00
JonnyWong16
ee161e46ed
Fix searching using MediaTag 2021-03-11 12:23:08 -08:00
JonnyWong16
b35dc53602
Make sure filter values are casted to string 2021-03-11 12:22:44 -08:00
JonnyWong16
1e8d98f074
Add & operator for library search 2021-03-11 12:02:37 -08:00
JonnyWong16
13cc13c57d
Add searchSeasons method to ShowSection 2021-03-11 11:28:55 -08:00
JonnyWong16
146a184838
Add searchMovies method to MovieSection 2021-03-11 11:28:55 -08:00
JonnyWong16
abbace6792
Update library search filtering methods 2021-03-11 11:28:55 -08:00