Commit graph

1189 commits

Author SHA1 Message Date
Jason Lawrence
2a810c63ae Bump to 4.5.1 2021-03-24 20:58:55 -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
Jason Lawrence
2bde234408 Bump to 4.5.0 2021-03-22 17:01:32 -05:00
Elan Ruusamäe
a3d43781fa
Add deviceID to Playable for history entries (#704)
* Add deviceID to Playable for history entries

* Add missing documentation for accountID/deviceID
2021-03-22 14:40:13 -05:00
jjlawren
f59f150bab
Improve PlexClient connections (#701)
* Improve PlexClient connections

* Add docstring
2021-03-22 14:37:52 -05: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
ef18e2c256
Fix parsing episode parentRatingKey from parentThumb (#699) 2021-03-22 14:35:07 -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
061ad9fefd
More PlexAPI filtering docs to fetchItems 2021-03-12 09:18:36 -08:00
JonnyWong16
ba98669610
Update search doc string 2021-03-12 00:03:17 -08:00
JonnyWong16
d752b351d5
Update fetchItem doc string 2021-03-11 23:23:03 -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
42163b85e2
Fix smart playlist listFilterChoices 2021-03-11 13:28:25 -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
c77dc4a595
Cast librarySectionID to int 2021-03-11 12:20:56 -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
JonnyWong16
0398895ce6
Update all library filtering related objects 2021-03-11 11:28:55 -08:00
JonnyWong16
811f661576
Add LibrarySection.hubSearch() 2021-03-11 11:28:55 -08:00
Jason Lawrence
1429867ae5 Bump to 4.4.1 2021-03-11 11:22:42 -06:00
JonnyWong16
c15133da88
Adds Movie and Artist advanced setting attributes (#680)
* Add advanced setting attributes to movie

* Add advanced setting attributes to artist

* Update tests for movie advanced setting attributes

* Update tests for artist advanced setting attributes

* Fix artist albumSort attribute
2021-03-11 11:20:28 -06:00
JonnyWong16
7bdc9ed137
Add support for the new Plex TV agent (#679)
* Add new Plex TV agent to library doc string

* Update new Plex TV agent show/season/episode attributes

* Update tests for new Plex TV agent show/season/episode attributes

* Fix test for show attributes

* Add network attribute to show

* Add show network to tests
2021-03-11 11:19:54 -06:00
jjlawren
a78126ed73
Handle missing key when PlayQueue passed to playMedia (#692)
* Handle missing key when playqueue passed to playMedia

* Simpler but less verbose fix
2021-03-11 11:18:51 -06:00
JonnyWong16
10495809e7
Fix season watched and unwatched 2021-03-01 17:54:19 -08:00
Steffen Fredriksen
2087e834f1
Merge pull request #673 from JonnyWong16/bugfix/share_docs
Update sharing doc strings
2021-02-27 15:41:38 +01:00
JonnyWong16
8bba39989b
Add tagline attribute to show 2021-02-26 23:01:00 -08:00
JonnyWong16
92490a2cdb
Update sharing doc strings 2021-02-26 22:51:22 -08:00
Jason Lawrence
2cde3a11b4 Bump to 4.4.0 2021-02-24 12:44:15 -06:00
Shubhendra Singh Chauhan
12cf146ace
fix: code quality issues (#670)
* Remove unnecessary use of comprehension

* Remove unnecessary comprehension

* Use literal syntax instead of function calls to create data structure

* Pass string format arguments as logging method parameters

* Remove unused imports

* Remove unnecessary generator

* Refactor `if` expression

* fixed typo

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

* Update tests/test_audio.py

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-02-24 11:55:53 -06:00
JonnyWong16
89d52418a6
Merge pull request #665 from JonnyWong16/feature/mixins
Add banner mixin to shows and clean up art/poster mixins
2021-02-24 09:23:23 -08:00
JonnyWong16
61a68ebf8a
Merge remote-tracking branch 'upstream/master' into feature/mixins 2021-02-24 09:04:52 -08:00
JonnyWong16
b10420fcce
Merge remote-tracking branch 'upstream/master' into bugfix/warnings 2021-02-24 08:58:35 -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
Steffen Fredriksen
34606631ad
Merge pull request #667 from JonnyWong16/feature/move_collection
Move collections to a separate module
2021-02-24 17:10:07 +01:00
Sascha Montellese
61dc373061
Fix gdm.GDM.find_by_content_type() (#668)
* Remove unused last_scan attribute of gdm.GDM

* Add missing documentation of entries attribute to gdm.GDM

* Fix gdm.GDM.find_by_content_type()
2021-02-16 13:45:10 -06:00
JonnyWong16
72244f558d
Fix deprecated collection.children to items 2021-02-15 17:04:50 -08:00
JonnyWong16
110fb2e94c
Flip default warning stack level 2021-02-15 16:57:16 -08:00
JonnyWong16
8af8ed9d1a
Fix deprecation warnings 2021-02-15 16:51:37 -08:00
JonnyWong16
88dbee7508
Fix flake8 2021-02-14 22:41:17 -08:00
JonnyWong16
5803af930c
Move collections to a new module 2021-02-14 22:33:03 -08:00
JonnyWong16
08bdab255b
Rename server checkForUpdate to camelCase
* Add deprecation warning to check_for_update
2021-02-14 21:59:11 -08:00
JonnyWong16
6d42030492
Move Release to server module 2021-02-14 21:56:28 -08:00
JonnyWong16
aa3c37e5b5
Clean doc strings 2021-02-14 20:06:49 -08:00
JonnyWong16
32f00e653a
Add alias posterUrl to thumbUrl 2021-02-14 19:58:18 -08:00
JonnyWong16
b0780aaec8
Add Playlist thumb alias to composite 2021-02-14 19:58:03 -08:00
JonnyWong16
9fa51cee2a
Subclass image url mixins 2021-02-14 19:38:09 -08:00
JonnyWong16
c41f89bf9b
Factor out artUrl, thumbUrl, bannerUrl to mixins 2021-02-14 19:12:18 -08:00
JonnyWong16
8478ae6e62
Add banner url to show tests 2021-02-14 19:03:19 -08:00
JonnyWong16
1cc60b4358
Add banner mixin for shows 2021-02-14 16:11:50 -08:00
JonnyWong16
b960e2f7a5
Remove unmatch from base PlexObject 2021-02-14 15:08:49 -08:00
JonnyWong16
7fedd01371
Test locking/unlocking fields when adding/removing tags 2021-02-14 14:52:33 -08:00
JonnyWong16
84f787a2cc
Merge remote-tracking branch 'upstream/master' into feature/edit_tags 2021-02-14 14:38:21 -08:00
JonnyWong16
724e6696f8
Merge pull request #664 from JonnyWong16/feature/media_attributes
Add originalTitle attribute to show
2021-02-14 14:35:46 -08:00
JonnyWong16
f66624f2bd
Merge pull request #656 from JonnyWong16/feature/object_parent
Fix checking object parent when the weakref is dead
2021-02-14 14:34:54 -08:00
JonnyWong16
13815f4388
Merge remote-tracking branch 'upstream/master' into feature/media_attributes 2021-02-14 14:23:45 -08:00
JonnyWong16
caa7f10722
Merge remote-tracking branch 'upstream/master' into feature/object_parent 2021-02-14 14:22:53 -08:00
JonnyWong16
1f2c0e8103
Merge remote-tracking branch 'upstream/master' into feature/posters 2021-02-14 14:22:09 -08:00
JonnyWong16
28b1f9e9a6
Add ability to lock/unlock fields when adding/removing tags 2021-02-11 09:28:15 -08:00
JonnyWong16
cc62f5093c
Add originalTitle attribute to show 2021-02-10 21:05:34 -08:00
JonnyWong16
46e902e125
Don't reload for Playable session keys 2021-02-07 15:31:45 -08:00
JonnyWong16
a221b226cd
Explicitly specify the Playable attrs that should not be overwritten 2021-02-07 14:50:28 -08:00
JonnyWong16
15e9ad9f00
Merge branch 'master' into feature/object_parent 2021-02-07 14:46:30 -08:00
JonnyWong16
d87547e2f9
Rename writer mixin 2021-02-07 10:54:03 -08:00
JonnyWong16
02c56841f0
Merge remote-tracking branch 'upstream/master' into feature/posters 2021-02-07 10:46:20 -08:00
Steffen Fredriksen
3f7655e96e
Merge pull request #639 from pkkid/mixin
Move split/merge and unmatch/match to a mixin
2021-02-07 19:37:14 +01:00
Steffen Fredriksen
2be946c207
Merge pull request #657 from JonnyWong16/feature/hidden_season
Fix episode parentKey and parentRatingKey when seasons are hidden in Plex
2021-02-07 19:36:39 +01:00
JonnyWong16
ab13523b17
Don't refresh after editing a tag 2021-02-07 09:45:47 -08:00
JonnyWong16
a073f930dc
Fix capitalization on doc string 2021-02-07 09:45:39 -08:00
JonnyWong16
a7e5763e78
Merge remote-tracking branch 'upstream/master' into feature/posters 2021-02-07 09:33:15 -08:00