Commit graph

1441 commits

Author SHA1 Message Date
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