Commit graph

1612 commits

Author SHA1 Message Date
Elan Ruusamäe
15e011fd29
Add support for error callback for AlertListener (#850) 2021-11-20 16:46:28 -08: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
JonnyWong16
777ea754be
Add methods for accepting and cancelling friend invites (#849)
* Add accepting and cancelling friend invites

* Add mocked tests for acceptInvite and cancelInvite

* Rename methods to pendingInvite
2021-11-20 16:16:01 -08:00
JonnyWong16
4e8a6133eb
Fix media delete (#848)
* Fix media delete

* Update media delete test
2021-11-20 16:02:34 -08:00
JonnyWong16
01131c95cf
Cleanup download methods (#847)
* Add utils.cleanFilename

* Refactor download methods

* Add option to download episodes, tracks, photos into subfolders

* Update download tests

* Test download keep_original_filename
2021-11-20 14:16:58 -08: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
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
921356099e create isBrowseable method in server.PlexServer 2021-10-26 17:47:34 -04:00
blacktwin
e46fc1cdc4 remove pathExist method from utils 2021-10-26 17:46:57 -04:00
blacktwin
9764ad4038 removing example 2021-10-22 17:02:38 -04:00
JonnyWong16
09730b5dc2
Release 4.7.2 2021-10-04 16:08:45 -07:00
JonnyWong16
bf3f0c1392
Merge branch 'master' into feature/album_types 2021-10-04 14:13:39 -07: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
JonnyWong16
3fce24587d
Merge pull request #810 from JonnyWong16/feature/web_url
Add methods to retrieve the Plex Web URL
2021-10-04 12:38:24 -07:00
blacktwin
222b8fe9ff Merge branch 'master' of https://github.com/pkkid/python-plexapi into libraryEditUpdates 2021-09-27 11:18:07 -04: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
blacktwin
ccda840c35 adding pathExist to utils 2021-09-27 10:15:18 -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
ae4b4d7ce4
Fix typo in lyric streams doc string 2021-09-21 09:33:37 -07:00
JonnyWong16
607d4b0faf
Add album format and subformat tags 2021-09-16 15:03:46 -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
842ec8ac42
Add includeGuids when parsing smart filters 2021-09-15 15:38:54 -07:00
JonnyWong16
bc6afebed9
Add includeGuids parameter when retrieving library results 2021-09-15 15:38:54 -07:00
Jason Lawrence
a50875afd6 Release 4.7.1 2021-09-12 20:55:59 -05:00
jjlawren
69739d6f2a
Fix PMS timeline reporting on clients when using playMedia (#826) 2021-09-12 20:51:18 -05:00
jjlawren
b8cef9dc12
Update version handling and add helper script (#806)
* Update version handling and add helper script

* Remove typing hints

* Address review, add tag argument
2021-09-12 19:59:23 -05:00
JonnyWong16
692a23586c
Add methods to lock and unlock artwork and posters (#825)
* Add private _edit method

* Add fields attribute to playlists

* Add lock and unlock methods to art, banner, and poster mixins

* Add tests for locking and unlocking art and posters
2021-09-12 19:56:21 -05:00
blacktwin
168f1d331c
Add attribute for Sonic Analysis (#814)
* adding new attribute found in Albums and Tracks when Sonically Analyzed

* update docstring and add property hasSonicAnalysis
2021-09-12 19:53:06 -05:00
JonnyWong16
e10f96a529
Add getPlaylistsWebURL for the server playlists page 2021-08-25 18:10:11 -07:00
JonnyWong16
17ab4ce252
Add getWebURL for LibrarySection and library hubs 2021-08-25 18:10:11 -07:00
JonnyWong16
9483e4d9c9
Add custom Plex Web URL override for track, photo, and playlist 2021-08-25 18:10:11 -07:00
JonnyWong16
0811e5334c
Add method to get the Plex Web URL for media items 2021-08-25 18:10:11 -07:00
Jason Lawrence
bd7de4281e Release 4.7.0 2021-07-26 20:59:51 -05: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
jjlawren
3b1dce7a8d
Decouple resource address sorting from connection attempts (#800)
* Decouple resource address sorting from connection attempts

* Fix lint

* Move defaults to class
2021-07-26 20:38:16 -05:00
JonnyWong16
2c540f69c8
Add producers, roles, and hasCommercialMarker to Episode objects (#797)
* Add producers and roles to Episode

* Add producers and roles to episode test

* Add hasCommercialMarker to Episode
2021-07-26 20:36:54 -05:00
JonnyWong16
753a67ffcd
Remove Content-type header from sync 2021-07-16 10:14:25 -07:00
JonnyWong16
88038a9b6c
Set default sync subtitleSize 2021-07-16 10:14:25 -07: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
31de29d502
Merge pull request #783 from JonnyWong16/feature/custom_collection_order
Add ability to move items in a collection
2021-07-16 09:21:25 -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
cfbf6f596d
Merge pull request #780 from JonnyWong16/bugfix/new_filters
Remove manual sorts/fields added to PMS
2021-07-16 09:20:48 -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
b7e8b37b3e
Add method to move items in a collection 2021-06-29 20:08:19 -07:00
JonnyWong16
91cb388dcb
Don't format sort direction if not present 2021-06-18 15:02:54 -07:00
JonnyWong16
dd0e3789f6
Add SmartFilterMixin to collections and playlists 2021-06-18 14:26:48 -07:00
JonnyWong16
0b81f0887b
Add SmartFilterMixin 2021-06-18 14:24:59 -07:00
JonnyWong16
2562334ad4
Add reverseSearchType util 2021-06-18 14:21:43 -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
4bd550c320
Bump to 4.6.1 2021-06-15 21:37:09 -07:00
JonnyWong16
624c3f8f47
Merge pull request #778 from pkkid/account_roles
Fix for accessing Account of non Plex Pass account
2021-06-15 21:14:40 -07:00
JonnyWong16
ca06ca6011
Merge pull request #775 from JonnyWong16/bugfix/playlists
Fix playlist copyToUser
2021-06-15 21:14:32 -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
blacktwin
54ce61b006 use rtag for roles and entitlements 2021-06-14 00:58:13 -04:00
blacktwin
7678e0cfef add iter on a specific root tag in listAttrs 2021-06-14 00:57:07 -04:00
JonnyWong16
a353df1f56 Fix keyword arguments for playlist copyToUser 2021-06-07 12:00:49 -07:00
JonnyWong16
90a1cff01e
Fix return value when using USER_DONT_RELOAD_FOR_KEYS 2021-06-07 08:55:04 -07:00
JonnyWong16
754698b37b
Bump to 4.6.0 2021-06-06 20:31:13 -07:00
JonnyWong16
8ef3d0ac35
Merge branch 'master' into feature/auto_reload 2021-06-06 18:05:08 -07:00
JonnyWong16
67b3fc694a
Allow clips and extras to be streamed and downloaded 2021-06-06 17:50:35 -07:00
JonnyWong16
7ddf47c223
Add doc string for Review object 2021-06-06 17:27:02 -07:00
JonnyWong16
4d60101ab7
Remove Account settings
* Settings are only for Plex Web specific settings like remembering selected tab, poster size, etc.
2021-06-06 17:23:48 -07:00
JonnyWong16
f8c7fefd2f
Cleanup Account onlineMediaSources OptOut methods 2021-06-06 17:23:44 -07:00
JonnyWong16
1d031166fc
Cleanup movie reviews and extras 2021-06-06 17:23:34 -07:00
JonnyWong16
6f44933f5b
Clean up Extra object 2021-06-06 16:40:25 -07:00
JonnyWong16
8f2ad955ab
Merge branch 'master' into reviews_extras 2021-06-06 15:02:03 -07:00
JonnyWong16
6448837112
Fix return typo in doc strings 2021-06-06 14:54:15 -07:00
JonnyWong16
7e8c93dcc7
Merge remote-tracking branch 'upstream/master' into bugfix/cleanup_findItems 2021-06-06 14:50:39 -07:00
JonnyWong16
fab55e1227
Merge branch 'master' into reviews_extras 2021-06-06 14:42:16 -07:00
JonnyWong16
a88cedbce8
Merge remote-tracking branch 'upstream/master' into feature/auto_reload 2021-06-06 14:35:58 -07:00
JonnyWong16
13215152c9
Explicit check for parent is not None
* Checking if parent is truthy calls the __len__ method which does not work for some Plex objects until after it is initialized with _loadData.
2021-06-06 13:51:59 -07:00
JonnyWong16
e965ebbbe6
Merge remote-tracking branch 'upstream/master' into feature/rating_mixin 2021-06-06 12:54:09 -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
38114b62ba
Check item exists in playlist before removing or moving 2021-06-02 09:23:39 -07:00
JonnyWong16
4d12cc9a49
Move reload to private method to hide the autoReload parameter 2021-06-02 08:59:52 -07:00
blacktwin
4a4a945653 Move section method from Clip to Extra 2021-05-31 09:50:21 -04:00
blacktwin
5013028344 SETTINGS url change and OPTOUT url creation 2021-05-31 09:46:46 -04:00
blacktwin
ca97c60dcb replace eval with json.loads 2021-05-31 09:20:19 -04:00
JonnyWong16
70bbfa3c84
Allow overwriting attributes with None when manually reloading 2021-05-30 16:25:25 -07:00
JonnyWong16
6e58f7f70e Refactor lastRatedAt userRating attributes 2021-05-30 15:49:45 -07:00
JonnyWong16
06ff7410a6 Add rating mixin 2021-05-30 15:49:45 -07:00
Steffen Fredriksen
6e92be6a7a
Merge pull request #745 from JonnyWong16/bugfix/to_datetime
Limit datetime attributes to max 32-bit integer timestamp
2021-05-30 11:49:06 +02:00
JonnyWong16
4458977988 Improve test coverage 2021-05-29 19:26:31 -07:00
JonnyWong16
b2ecd2b7f9
Add AdvancedSettingsMixin to Collection 2021-05-29 18:48:31 -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
99ca6a5647
Add collection sync 2021-05-29 16:57:43 -07:00
JonnyWong16
ccc6091bb4
Fix collection length 2021-05-29 16:57:42 -07:00
JonnyWong16
04c25953fe
Fix collection and playlist edit for blank values 2021-05-29 16:57:42 -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
0512e9f38e
Add collection modification methods 2021-05-29 16:57:41 -07:00
JonnyWong16
95c1be28bc
Add PlexServer.createCollection() method 2021-05-29 16:57:41 -07:00
JonnyWong16
ef136a8c9c
Add create Collection class methods 2021-05-29 16:57:40 -07:00
JonnyWong16
94fb9783fe
Add limit to the playlist uri instead of query param 2021-05-29 16:57:40 -07:00
JonnyWong16
a435a5a9fa
Add limit to search filter 2021-05-29 16:57:40 -07:00
JonnyWong16
0ed9240909
Reorganize playlist dunder methods 2021-05-29 16:57:39 -07:00
JonnyWong16
7d90fd60e8
Add library alias to create playlist 2021-05-29 16:57:39 -07:00
JonnyWong16
a1861c5595
Add retrieving server playlists by type 2021-05-29 16:57:38 -07:00
JonnyWong16
00be05f17b
Add doc strings to playlist properties 2021-05-29 16:57:38 -07:00
JonnyWong16
2af15e2d73
Add method to update smart playlist filters 2021-05-29 16:57:38 -07:00
JonnyWong16
4c9964db1b
Add method to retrieve playlist section 2021-05-29 16:57:37 -07:00
JonnyWong16
3edec52e2e
Update playlist add, remove, move, and edit methods 2021-05-29 16:57:37 -07:00
JonnyWong16
be2293ad30
Update playlist attributes for smart playlists 2021-05-29 16:57:37 -07:00
JonnyWong16
a131482cdc
Update creating smart playlist using search filters 2021-05-29 16:57:36 -07:00
blacktwin
44b4066273 Clip.section docstring update 2021-05-28 11:59:07 -04:00
blacktwin
70ad8ba10c updateOptOut docstring 2021-05-28 11:59:02 -04:00
blacktwin
9982b8e108 MediaContainer docstring 2021-05-28 11:58:55 -04:00
blacktwin
9f5f2b7b12 MediaContainer attribute ordering 2021-05-28 11:58:50 -04:00
blacktwin
49732cf92a Extra.addedAt docstring update. 2021-05-28 11:57:57 -04:00
blacktwin
226b9834f7 MyPlex.settings slight clean up and property 2021-05-28 11:57:52 -04:00
blacktwin
277f2ea717 onlineMediaSources further clean up 2021-05-28 11:57:46 -04:00
blacktwin
76719d9c70 onlineMediaSources clean up 2021-05-28 11:57:40 -04:00
blacktwin
4f6634db38 Review attribute ordering 2021-05-28 11:56:47 -04:00
blacktwin
aa0596d2a1 SETTINGS url string substitution update %s instead of .format() 2021-05-28 11:56:22 -04:00
blacktwin
0c8e5f9b5b Extra atrributes update cast int 2021-05-28 11:46:31 -04:00
JonnyWong16
0095e83f75
Cleanup utils imports 2021-05-26 19:45:12 -07:00
JonnyWong16
6726a64e64
Fix settings.Preferences doc string TAG 2021-05-24 19:36:26 -07:00
JonnyWong16
f81456d3b6 Refactor usage of listAttrs 2021-05-24 17:37:46 -07:00
JonnyWong16
3fc69a3709
Refactor usage of findItems 2021-05-24 17:28:11 -07:00
blacktwin
c0b6efc23c
Merge branch 'master' into reviews_extras 2021-05-24 07:21:34 -04: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
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
c4522d9c6b
Merge pull request #746 from JonnyWong16/feature/properties
Add episodeNumber, trackNumber, and hasPreviewThumbnails helper properties
2021-05-23 19:02:20 -07:00
JonnyWong16
8c2b3ce063
Merge pull request #741 from JonnyWong16/feature/tag_items
Add ability to retrieve a list of items and collection object from media tags
2021-05-23 19:01:07 -07:00
JonnyWong16
893a992855
Merge pull request #739 from Alindil/patch-2
Add method to return a list of all optimized items
2021-05-23 19:00:25 -07:00
JonnyWong16
95877dd1ee Add methods to claim and unclaim a server 2021-05-22 14:44:40 -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
28f0585a97
Update doc string for track originalTitle 2021-05-15 22:39:26 -07:00
JonnyWong16
d6cd71c971
Add lastRatedAt to Audio and Video 2021-05-15 22:38:35 -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
Alindil
17daa1be72
Revert "Update server.py"
This reverts commit 73deabd97f.
2021-05-14 16:30:39 -07:00
JonnyWong16
3af971d1ae
Add Optimized.items() method 2021-05-14 16:29:12 -07:00
JonnyWong16
43822fd42c
Deprecate PlexServer.optimizedItem 2021-05-14 16:28:59 -07:00
JonnyWong16
1fcd7aa31a
Update Playlist.copyToUser with switchUser 2021-05-11 17:10:39 -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
JonnyWong16
5e7a5e572c
Add hasPreviewThumbnails properties 2021-05-10 18:06:50 -07:00
JonnyWong16
12701ab997
Add trackNumber propery 2021-05-10 17:56:51 -07:00
JonnyWong16
b27e12c5d9
Add episodeNumber property 2021-05-10 17:56:06 -07:00
JonnyWong16
975a9eb3a2
Limit toDatetime to 32-bit integer 2021-05-10 16:11:16 -07:00
JonnyWong16
64f647e12b
Add addition season and episode attributes
* Season.parentStudio
* Season.year
* Episode.parentYear
2021-05-09 21:28:17 -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
158c5f5633
Merge pull request #730 from JonnyWong16/bugfix/episode_tests
Fix retrieving Season.episode() by episode number
2021-05-09 19:44:52 -07:00
JonnyWong16
ecd9309383
Merge pull request #729 from JonnyWong16/feature/smart_collections
Add new collection attributes
2021-05-09 19:44:27 -07:00
JonnyWong16
0117a84086
Merge pull request #725 from meisnate12/bugfix/ShowSpecialsSeason
Fix retrieving specials (season 0) for tv shows
2021-05-09 19:43: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
JonnyWong16
246ad82f86
Add CollectionMixin to Season, Episode, and Track 2021-05-09 12:24:55 -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
c6c9d83bca
Fix getting Season.episode by episode number 2021-04-24 11:49:36 -07:00
JonnyWong16
276a4f3b59
Add new collection attributes 2021-04-23 13:45:24 -07:00
Elan Ruusamäe
aa8838ce7d
Fix spelling error for container_start value check (#727) 2021-04-18 22:05:19 -05:00
meisnate12
c957c4fc98 exclude leaves from show seasons 2021-04-14 11:43:21 -04:00
blacktwin
8aaa0c09a7 spelling & indent correction 2021-04-14 08:02:04 -04:00
blacktwin
0bacdbeabf
readding MediaContainer import 2021-04-12 13:16:33 -04:00
blacktwin
5d670364d6
fixing import
missed last import in copy/paste from master.
2021-04-12 13:12:46 -04:00
blacktwin
790d12504a
flake fix
remove trailing comma
2021-04-12 13:10:41 -04:00
blacktwin
f92878d75f
Merge branch 'master' into reviews_extras 2021-04-12 13:08:29 -04:00
blacktwin
227bb51717
remove Release
Release class was unintendedly added by a merge before it was properly located.
2021-04-12 13:07:10 -04:00
meisnate12
b9bf8eeabc updated AdvancedSettingsMixin 2021-04-06 23:44:28 -04: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
Jason Lawrence
bea32faa8b Bump to 4.5.2 2021-04-05 15:49:21 -05: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
meisnate12
5584ef1d4f
Added AdvancedSettingsMixin (#714)
* Added AdvancedSettingsMixin

* forgot import

* shortened line

* remove whitespace

* removed unused import

* reordered mixins

* Add preference method to AdvancedSettingsMixin

* Add tests for AdvancedSettingsMixin

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2021-04-05 15:44:49 -05:00
JonnyWong16
2e7ae1f3ec
Fix LibrarySection totalViewSize for photo libraries (#715) 2021-04-05 14:36:19 -05:00
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
blacktwin
9d2ec9546e
Merge branch 'master' into reviews_extras 2021-03-09 08:26:52 -05: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
JonnyWong16
76fa9a9bf6
Merge remote-tracking branch 'upstream/master' into mixin 2021-02-07 09:29:54 -08:00
JonnyWong16
04a07b3e7d
Check obj is not None for _isChildOf 2021-02-06 20:31:07 -08:00
JonnyWong16
88e69d4664
Merge branch 'master' into feature/edit_tags 2021-02-06 20:27:34 -08:00