JonnyWong16
271f4840e6
Merge branch 'master' into feature/posters
2021-02-06 20:26:46 -08:00
JonnyWong16
21f29f4373
Rename mixins
2021-02-06 20:23:05 -08:00
JonnyWong16
9c1ac7981d
Rename mixins
2021-02-06 20:21:49 -08:00
JonnyWong16
68b77b67b8
Separate art and poster mixin
2021-02-06 20:19:11 -08:00
JonnyWong16
e7772c6f6f
Fix episode's parentKey and parentRatingKey when season's are hidden
2021-02-04 18:56:21 -08:00
JonnyWong16
68045feba2
Fix _isChildOf when weakref is dead
2021-02-04 18:04:08 -08:00
Jason Lawrence
9c0bb00bdb
Bump to 4.3.1
2021-02-02 15:49:09 -06:00
Steffen Fredriksen
3b62211268
Merge pull request #650 from JonnyWong16/bugfix/photoalbum_key
...
Fix photo album key
2021-02-02 08:13:25 +01:00
Steffen Fredriksen
77b1d0e9a3
Merge pull request #651 from JonnyWong16/feature/collection_thumb_art
...
Add thumbUrl and artUrl properties to Collections
2021-02-02 08:13:05 +01:00
JonnyWong16
a263f49b10
Fix sorting of resource connections ( #653 )
...
* Fix sorting of resource connections
* Update resource connect doc strings
* flake8 single variable name connection
2021-02-01 21:59:34 -05:00
JonnyWong16
5c41bf01ac
Add thumbUrl and artUrl properties to collections
2021-01-25 09:14:25 -08:00
JonnyWong16
43a54d556d
Fix photo album key
2021-01-24 21:28:27 -08:00
JonnyWong16
22bc55a74e
Rename tag plural helper function
2021-01-24 19:44:36 -08:00
Jason Lawrence
d3fbc4f25b
Bump to 4.3.0
2021-01-24 21:05:16 -06:00
JonnyWong16
ee28bef80f
Add support for the new Plex Movie agent ( #628 )
...
* guids collection to movie and GuidTag PlexObject
* Fix flake8
* Clean up GuidTag and Guid
* Add Plex Movie agent to add library doc string
* Change test bootstrap server movie library to Plex Movie
* Update tests for Plex Movie agent
* Mix movie genre test
Co-authored-by: andyloree <andy@andyloree.com>
2021-01-24 21:03:58 -05:00
Davin Martin
fee5261aaf
Added missing support for /transcode/sessions ( #629 )
2021-01-24 20:33:07 -05:00
JonnyWong16
5a4d564fd3
Move poster and art to a mixin
2021-01-24 15:29:20 -08:00
JonnyWong16
25ab16502e
Move unmatch and match to mixins
2021-01-24 15:18:28 -08:00
JonnyWong16
3e1e2434a7
Clean up SplitMerge mixin
2021-01-24 15:13:22 -08:00
JonnyWong16
c23d9635f5
Rename to mixins
2021-01-24 15:03:23 -08:00
Hellowlol
f13d0bfe3b
Change class name of the mixin
2021-01-24 14:58:57 -08:00
JonnyWong16
1445be25eb
Merge branch 'master' into feature/posters
2021-01-24 14:51:11 -08:00
JonnyWong16
c1d294b39c
Remove old todo comment
2021-01-24 14:49:40 -08:00
JonnyWong16
1b378d3f1c
Add helper function to get the plural tag
2021-01-24 14:40:39 -08:00
JonnyWong16
cfc5bdae26
Photo plural tags attribute
2021-01-24 14:40:39 -08:00
JonnyWong16
7aaf56a62d
Move all tag editing to a mixin
2021-01-24 14:40:39 -08:00
jjlawren
db344e9e6b
Fix onDeck handling of TV Shows ( #641 )
...
* Fix onDeck handling of TV Shows
* Add onDeck for Season, update docstrings
* Clarify docstring wording
2021-01-24 15:49:32 -05:00
JonnyWong16
dfc5aa1eef
Fix server hub searches ( #643 )
...
* Add hub search media tag objects
* Fix server search
* Fix hub media tag thumb
* Update server search test with tags
2021-01-24 15:48:38 -05:00
JonnyWong16
a9a44a6a41
Fix related hubs ( #642 )
...
* Fix related hubs
* Update hub doc strings
* Add reload method for hubs
* Rename movie hub variable to match XML tag
* Add movie hubs test
* Fix hub test
2021-01-24 15:29:44 -05:00
blacktwin
4f0910ab79
Update to MediaPartStream and inheriting classes ( #590 )
...
* moving common child (VideoStream, AudioStream, SubtitleStream) attributes to the parent (MediaPartStream)
* removal of no longer present attribs in video, audio, subtitle streams
* additional attribs to video and mediapart streams
* removal of previously unique subtitleStream attribs. attribs are now common or no longer present.
* docstring cleanup of video, audio, and subtitle stream; pass 1
* remove codecID checks as this attribute is now longer used.
* adding key attrib to parent MediaPartStream.
* add transient to SubtitleStream, found in uploaded subtitles
* removing dialogNorm related assertion as this attrib has been removed.
* update Media class based on PR comments
optimizedVersion to be added, need SEARCHTYPES
* update MediaPartStream class based on PR comments
* update VideoStream class based on PR comments
* update AudioStream class based on PR comments
* update SubtitleStream class based on PR comments
* add LyricStream class based on PR comments
* add streamType int and LyricStream to MediaPartStream.parse method
* add MediaPart.lyricStreams method
* spelling correction
* more movement based on PR comments
* alpha ordering MediaPart
* alpha sort VideoStream
* docstring corrections
* remove assert stream.dialogNorm from audio test as dialogNorm has been removed.
* adding LyricStream to _buildStreams function
* adding changes from @johnnywong16
e346f0b4dc
* moving unused imports down and together
* Address docstring review comments
* Change isChildOf for any kwargs
* Add Media.isOptimizedVersion property
* Add photo and track specific attributes
* Remove dead MediaPartStream.parse method
* Update media doc strings
* Add optimized version doc string
* Cast video stream codedHeight and codedWidth to int
* Add required bandwidths to streams
* Update video tests
* Update audio tests
* Fix video tests
* Fix video tests
* Fix video tests
Co-authored-by: Jason Lawrence <jjlawren@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2021-01-24 15:21:56 -05:00
JonnyWong16
13325a50ba
Remove poster and art methods from collections and playlists
...
* Methods are already defined in PlexPartialObject
2021-01-24 11:12:02 -08:00
JonnyWong16
bc153b8896
Update poster and art doc strings
2021-01-24 11:10:11 -08:00
JonnyWong16
48c41a1c68
Separate Poster and Art objects
2021-01-24 11:09:42 -08:00
jjlawren
4da40789ea
Reduce log level of MyPlex resource connection attempts ( #647 )
2021-01-20 13:07:03 -05:00
blacktwin
35fb440cc1
update REMOVEINVITE string ( #584 )
2021-01-19 12:35:35 -05:00
Steffen Fredriksen
ed0532c040
Merge pull request #535 from nwithan8/patch-2
...
Playlist creation - check items are included, raise exception
2021-01-11 23:13:18 +01:00
JonnyWong16
b7b32fb99d
Raise not found for missing bandwidth account/device
2021-01-03 10:50:07 -08:00
JonnyWong16
345d0b2743
Replace findItems with fetchItems
2021-01-03 10:41:38 -08:00
JonnyWong16
f0b680426f
Fix bandwidth doc string
2021-01-02 18:21:50 -08:00
JonnyWong16
5fa3e90e80
Fix flake8
2021-01-02 18:14:35 -08:00
JonnyWong16
8598236994
Add timestamp to statistic repr
2021-01-02 18:11:34 -08:00
JonnyWong16
97844688ab
Flip bandwidth timespan conditional
2021-01-02 18:08:43 -08:00
JonnyWong16
59e79242a7
Replace devices in SystemDevice repr
2021-01-02 18:04:46 -08:00
JonnyWong16
57fe3bd12f
Default bandwidth timespan to seconds
2021-01-02 18:02:29 -08:00
JonnyWong16
d5cf467592
Rename method to bandwidth and resources
2021-01-02 18:01:55 -08:00
JonnyWong16
3cae35a280
Return list of dashboard bandwidth and resources directly
2021-01-02 17:54:48 -08:00
JonnyWong16
9030759e99
Cache system accounts and system devices
2021-01-02 17:54:17 -08:00
JonnyWong16
ed90911781
Rename statistics account and device to system account and device
2021-01-02 17:25:39 -08:00
JonnyWong16
6b5b8c82a1
Update dashboard doc strings
2021-01-02 17:04:00 -08:00
JonnyWong16
eeda5dfd67
Fix exception doc strings
2021-01-02 16:44:18 -08:00
JonnyWong16
f8c325ce2f
Add server dashboard bandwidth and resources
2021-01-02 16:44:02 -08:00
JonnyWong16
ebdaedeba7
Fix getting season=0 or episode=0
2020-12-30 15:49:26 -08:00
Hellowlol
3526b8cdeb
Allow specials.
2020-12-31 00:35:57 +01:00
Hellowlol
f2e7e891cb
Fix a test in navigation
...
keep compat for season(int)
2020-12-30 23:58:01 +01:00
JonnyWong16
5b78f6b482
Merge branch 'master' into feature/media_attributes
2020-12-30 12:53:17 -08:00
JonnyWong16
d5c29cc626
Override libtype for PhotoSection.all()
2020-12-26 20:53:55 -08:00
JonnyWong16
810c5566c3
Fix playlist tests
2020-12-24 09:21:29 -08:00
JonnyWong16
2765bee2b3
Fix audio tracks key
2020-12-24 09:21:17 -08:00
JonnyWong16
1ce97102cd
Fix typo in library totalSize doc string
2020-12-24 09:08:52 -08:00
JonnyWong16
5df75728b3
Fix flake8
2020-12-23 23:05:08 -08:00
JonnyWong16
c1a1d1616b
Add Playlist.item() method
2020-12-23 22:32:48 -08:00
JonnyWong16
949d37bc2f
Update listAttrs doc string
2020-12-23 22:29:26 -08:00
JonnyWong16
b7f813aacd
Add Playlist attributes doc string
2020-12-23 22:25:10 -08:00
JonnyWong16
f41be90a3a
More doc string clean up
2020-12-23 22:24:46 -08:00
JonnyWong16
3430c245e2
Make sure key defaults to blank string so fix #50 works
2020-12-23 22:17:43 -08:00
JonnyWong16
8206dfbade
Fix flake8
2020-12-23 22:00:00 -08:00
JonnyWong16
2acb75f86f
Update all methods used to get an object's children
2020-12-23 21:38:48 -08:00
JonnyWong16
6f5cae2a72
More etag relacement with classes
2020-12-23 20:48:58 -08:00
JonnyWong16
d433c0b3d4
Update locations doc strings for consistency
2020-12-23 20:40:08 -08:00
JonnyWong16
7f1e2cafab
Update LibrarySection doc strings
2020-12-23 20:39:45 -08:00
JonnyWong16
41342b4f7b
Replace use of etag with class
2020-12-23 20:39:15 -08:00
JonnyWong16
00f80cb424
Check if LibrarySection.search() filter is an OPERATOR
2020-12-23 17:13:51 -08:00
JonnyWong16
473b7aae65
Pass remaining filtered kwargs to LibrarySection.search()
2020-12-23 17:00:14 -08:00
JonnyWong16
1d0527bd7e
Update LibrarySection.all() method
...
* Uses LibrarySection.search() for more filter/sorting options and faster paging of results
2020-12-23 17:00:14 -08:00
JonnyWong16
99c447525a
Update library.Collection attributes
2020-12-23 16:16:22 -08:00
JonnyWong16
cf56d9a13c
Update photo attributes
2020-12-23 16:16:22 -08:00
JonnyWong16
1c5942986d
Update video attributes
2020-12-23 15:53:57 -08:00
JonnyWong16
50633d3601
Update audio attributes
2020-12-23 15:53:57 -08:00
JonnyWong16
497ceaec9e
Add Style media tag
2020-12-23 15:53:57 -08:00
JonnyWong16
9d23ec072e
Fix race condition in create MyPlexDevice from #620 ( #625 )
...
* Make test Plex Pass entitlements a subset
* Fix create MyPlexDevice race condition
* Rename to clientId to be consistent
* Move link method to MyPlexAccount
2020-12-15 22:41:04 -06:00
Steffen Fredriksen
dcd2663645
Merge pull request #616 from JonnyWong16/bugfix/collection_children
...
Fix collection children
2020-12-14 00:45:30 +01:00
JonnyWong16
edd5b514ed
Rename _isChildOf method
2020-12-13 12:41:53 -08:00
JonnyWong16
6cb2168ef0
Update PlexObject doc string
2020-12-13 12:41:43 -08:00
JonnyWong16
0d6c43558a
Add method to keep track of the parent PlexObject
2020-12-13 12:41:43 -08:00
JonnyWong16
aa9b530b2e
Fix doc building with DeprecationWarning
2020-12-13 12:36:43 -08:00
JonnyWong16
110789dd0c
Add utils.deprecated decorator function
2020-12-13 12:08:38 -08:00
JonnyWong16
4a3d7db9fa
Restore deprecated Collection.children
2020-12-13 11:59:37 -08:00
JonnyWong16
8958aea67f
Change collection children to items
2020-12-13 11:33:27 -08:00
JonnyWong16
a341cdad5b
Fix collection children
2020-12-13 11:33:00 -08:00
JonnyWong16
2cf0d7edab
Fix rare case where details_key is None
2020-12-06 19:04:18 -08:00
JonnyWong16
d88d5f7290
No cover for createMyPlexDevice
2020-12-06 17:42:44 -08:00
JonnyWong16
f6d61857ad
Only show Deprecation warnings
2020-12-06 17:42:44 -08:00
JonnyWong16
f70058ad13
Add helper function to create a Plex device
2020-12-06 17:42:44 -08:00
JonnyWong16
121d54d86c
Retrieve device using clientIdentifier
2020-12-06 17:42:44 -08:00
JonnyWong16
966ac5515b
Allow custom headers for MyPlexPinLogin
2020-12-06 17:42:44 -08:00
JonnyWong16
9adf29f2c6
Update MyPlexPinLogin for Plex API v2
...
* Also adds method to link a device using the pin
2020-12-06 17:42:44 -08:00
Steffen Fredriksen
f22fa5694b
Merge pull request #597 from jjlawren/get_playqueue
...
Add method to retrieve a PlayQueue
2020-12-05 14:13:23 +01:00
Steffen Fredriksen
ad7709611e
Merge pull request #608 from JonnyWong16/bugfix/doc_build
...
Update building documentation using napoleon
2020-12-05 14:12:21 +01:00
JonnyWong16
422f82ead4
Test Collection delete by creating a new collection
2020-12-05 01:08:00 -08:00
JonnyWong16
9786546a05
Also log DeprecationWarning
2020-12-04 23:54:43 -08:00
JonnyWong16
d4c22617cb
Add LibrarySection playlists method
2020-12-04 12:28:11 -08:00
JonnyWong16
86d51bae6c
Change LibrarySection collections method to plural
...
* Add DeprecationWarning to old collection method
* Add NotImplementedError for PhotoSection.collections()
2020-12-04 12:27:45 -08:00
jjlawren
f4229050d4
Allow setting token env in tests ( #610 )
...
* Allow setting token env for test runs
* Use existing config option
* Use token in CI tests
2020-12-04 11:37:19 -06:00
JonnyWong16
b451b22bb8
Fix doc building
2020-11-23 12:20:56 -08:00
Steffen Fredriksen
ae59620e9a
Merge pull request #601 from JonnyWong16/server_browse
...
Add ability to browse and walk the Plex server system file directories
2020-11-23 07:48:53 +01:00
Steffen Fredriksen
b623b43a58
Merge pull request #606 from JonnyWong16/bugfix/full_object
...
Fix Collections stuck as partial object after reloading
2020-11-23 07:47:10 +01:00
Steffen Fredriksen
35c5d0d532
Merge pull request #607 from JonnyWong16/feature/custom_includes
...
Add ability to customize XML includes when reloading object
2020-11-23 07:46:37 +01:00
JonnyWong16
274b05e913
Fix raise exception docs
2020-11-22 20:43:59 -08:00
JonnyWong16
7f7d03236b
Fix docstrings
2020-11-22 19:06:30 -08:00
JonnyWong16
33f7aa43a5
Fix docstring
2020-11-22 19:04:14 -08:00
JonnyWong16
f3e9425a2c
Update docstring from artBlurHash and thumbBlurHash
2020-11-21 21:25:24 -08:00
JonnyWong16
9fb3eaf41c
Add thumbBlurHash and artBlurHash attributes with includeFields
2020-11-21 20:02:31 -08:00
JonnyWong16
178217a981
Improve docstring for reload
2020-11-21 19:52:33 -08:00
JonnyWong16
a5690579d5
Refactor includes to PlexPartialObject
...
* Allows includes to be used by Audio, Video, Photoalbum, Photo, Collections, and Playlist
2020-11-21 19:52:01 -08:00
JonnyWong16
fa4d8a45af
Collection mode default is -1
2020-11-21 17:35:33 -08:00
JonnyWong16
387ab17072
Settings __getattr__ needs to raise AttributeError
2020-11-21 14:49:21 -08:00
JonnyWong16
a12f8b09e5
Ensure sorted parameters in details key
2020-11-21 13:20:53 -08:00
JonnyWong16
d59d199ee7
Always build default details key
2020-11-21 12:08:27 -08:00
JonnyWong16
b60e541b00
Fix Collections stuck as partial object after reloading
2020-11-20 20:54:43 -08:00
JonnyWong16
0d27aa3f8e
Replace uses of details key in Show and Collection
2020-11-20 20:46:35 -08:00
JonnyWong16
c171aa2745
Allow customizing XML includes when reloading
...
pkkid/python-plexapi#603
2020-11-20 19:54:07 -08:00
JonnyWong16
b9c3a93c67
Add path parameter to library update
2020-11-20 17:05:57 -08:00
JonnyWong16
0450cd10a4
Browse and walk docstring to specify full path
2020-11-20 17:00:45 -08:00
JonnyWong16
71904cca15
Clean Path and File docstring
2020-11-15 21:28:58 -08:00
JonnyWong16
4091a0b272
Make includeFiles optional in PlexServer.browse()
2020-11-15 21:21:08 -08:00
JonnyWong16
93280dd979
Allow PlexServer.browse() and .walk() using a Path object
2020-11-15 21:10:13 -08:00
JonnyWong16
7298b3c606
Add ability to browse and walk the Plex server system file directories
2020-11-15 17:54:48 -08:00
Jason Lawrence
e22bc81f35
Docstring flake adjustment
2020-11-02 19:24:25 -06:00
Jason Lawrence
b59dd3303f
Add method to retrieve a PlayQueue
2020-11-02 17:18:46 -06:00
jjlawren
6430f06e6b
Bump to 4.2.0 release ( #596 )
2020-11-01 15:03:34 -06:00
jjlawren
2f4a7506dc
Make Photo objects Playable ( #592 )
...
* Make Photo objects Playable
* Add more attributes
2020-11-01 15:02:23 -06:00
Steffen Fredriksen
380fd784c4
Merge pull request #582 from pkkid/photo_download
...
Add download feature to Photo library
2020-11-01 13:06:41 +01:00
Steffen Fredriksen
da1181228a
Merge pull request #583 from pkkid/clean_optimize
...
Updating cleanBundles() and optimize() methods
2020-11-01 13:05:38 +01:00
Steffen Fredriksen
114d907443
Merge pull request #585 from jjlawren/gdm_scan_clients_with_all
...
Allow scanning for clients when using GDM.all()
2020-11-01 13:05:07 +01:00
Steffen Fredriksen
60d1fc6daa
Merge pull request #588 from pkkid/field_correction
...
Collection fields not pulling locked fields
2020-11-01 13:01:45 +01:00
jjlawren
83947b0e29
Don't overwrite existing attributes with an empty list ( #594 )
...
* Don't overwrite existing attributes with an empty list
* Also check for empty lists in __eq__
2020-10-31 00:13:19 -05:00
blacktwin
11dcf0b5f4
Merge remote-tracking branch 'remotes/origin/master' into photo_download
2020-10-23 15:50:20 -04:00
blacktwin
c6458a41a5
addressing #587
2020-10-21 08:58:56 -04:00
Jason Lawrence
40e295ddf9
Allow scanning for clients when using GDM.all()
2020-10-13 17:00:34 -05:00
blacktwin
b8fbe7235f
updating cleanBundles() and optimize() methods
2020-10-10 15:09:22 -04:00
blacktwin
411018dd37
add iterParts() and download() methods to Photoalbum class
2020-10-10 15:00:19 -04:00
blacktwin
0e8b2e88db
add download() method to Photo class
2020-10-10 14:55:49 -04:00
blacktwin
717b274d82
add iterParts() method to Photo class
2020-10-10 14:55:16 -04:00
jjlawren
7dad2a8931
Add server handling of HTTP status code 204 ( #580 )
2020-10-08 12:51:19 -05:00
Ryan Meek
f9f3535751
Update timeline to return an active timeline object w/ attributes ( #572 )
...
* timeline() now returns ClientTimeline objects
* timeline() creates and returns ClientTimeline objects with associated attributes and caching
* Refactor isPlayingMedia to use the new attributes and fix it's default value
* Clarify docstrings
* Remove default param in timeline call & fix docstring typo
* return empty list if `timelines()` comes back empty
Web clients can occasionally return no timelines if no media has been played on them or if nothing has played for a while, this prevents errors in those cases.
* typo
* Workaround for unresponsive clients
* Use sendCommand rather than timelines() for PTP workaround
* Remove workaround, set timeline's wait default to 1
* set timelines() wait default to 0, document buggy behavior
* Use ClientTimeline.key for consistency
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
* cast playQueue's IDs as int
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
* Add audio attribs & make casts bool from int where it makes sense.
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2020-10-02 11:33:53 -05:00
Steffen Fredriksen
163d94d249
Merge pull request #507 from pkkid/show_advanced_setting
...
Edit Library and Show's Advanced Settings
2020-10-02 12:24:08 +02:00
Steffen Fredriksen
6a5981c888
Merge pull request #518 from pkkid/library_hubs
...
Library Hubs and Music Stations
2020-10-01 15:47:59 +02:00
jjlawren
eef7b3f843
Bump to 4.1.2 release ( #578 )
...
Compatibility fixes for Python 3.5
2020-09-28 13:23:46 -05:00
blacktwin
4f96838b3d
update sort field in library.ShowSection.recentlyAdded method
2020-09-28 13:51:53 -04:00
Andrew Gaffney
14b8d0e8c8
Replace format strings with explicit call to format() for backward compatibility ( fixes #576 ) ( #577 )
2020-09-28 08:41:18 -05:00