Commit graph

187 commits

Author SHA1 Message Date
blacktwin
921356099e create isBrowseable method in server.PlexServer 2021-10-26 17:47:34 -04: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
JonnyWong16
7e8c93dcc7
Merge remote-tracking branch 'upstream/master' into bugfix/cleanup_findItems 2021-06-06 14:50:39 -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
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
95c1be28bc
Add PlexServer.createCollection() method 2021-05-29 16:57:41 -07:00
JonnyWong16
a1861c5595
Add retrieving server playlists by type 2021-05-29 16:57:38 -07:00
JonnyWong16
a131482cdc
Update creating smart playlist using search filters 2021-05-29 16:57:36 -07:00
JonnyWong16
0095e83f75
Cleanup utils imports 2021-05-26 19:45:12 -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
95877dd1ee Add methods to claim and unclaim a server 2021-05-22 14:44:40 -07:00
Alindil
17daa1be72
Revert "Update server.py"
This reverts commit 73deabd97f.
2021-05-14 16:30:39 -07:00
JonnyWong16
43822fd42c
Deprecate PlexServer.optimizedItem 2021-05-14 16:28:59 -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
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
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
811f661576
Add LibrarySection.hubSearch() 2021-03-11 11:28:55 -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
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
Davin Martin
fee5261aaf
Added missing support for /transcode/sessions (#629) 2021-01-24 20:33:07 -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
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
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
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
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
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
0450cd10a4
Browse and walk docstring to specify full path 2020-11-20 17:00:45 -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