Commit graph

69 commits

Author SHA1 Message Date
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
JonnyWong16
1fcd7aa31a
Update Playlist.copyToUser with switchUser 2021-05-11 17:10:39 -07:00
JonnyWong16
42163b85e2
Fix smart playlist listFilterChoices 2021-03-11 13:28:25 -08:00
JonnyWong16
b0780aaec8
Add Playlist thumb alias to composite 2021-02-14 19:58:03 -08:00
JonnyWong16
68b77b67b8
Separate art and poster mixin 2021-02-06 20:19:11 -08:00
JonnyWong16
5a4d564fd3
Move poster and art to a mixin 2021-01-24 15:29:20 -08: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
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
eeda5dfd67
Fix exception doc strings 2021-01-02 16:44:18 -08:00
JonnyWong16
810c5566c3
Fix playlist tests 2020-12-24 09:21:29 -08:00
JonnyWong16
c1a1d1616b
Add Playlist.item() method 2020-12-23 22:32:48 -08:00
JonnyWong16
b7f813aacd
Add Playlist attributes doc string 2020-12-23 22:25:10 -08:00
JonnyWong16
b451b22bb8
Fix doc building 2020-11-23 12:20:56 -08: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
jjlawren
fe27d7644f
Add iterator for Playlist objects (#549) 2020-08-11 12:11:53 -05:00
Nate Harris
f5647e52c2
Playlist creation - check items are included, raise exception 2020-07-23 19:31:27 -04:00
Hellowlol
940efc0013 first pass on compat. 2020-05-12 23:15:16 +02:00
blacktwin
1bdba218b9 add arts methods to playlist.Playlist
Playlists currently do not have or expose any art
this is to be a place holder for the possible addition from Plex
2020-03-18 09:45:52 -04:00
blacktwin
0b4b9c452e update setPoster method in base, library.Collection, playlist
use media.Poster select method instead
2020-03-18 09:26:09 -04:00
blacktwin
9651f77c07 add posters methods to playlist
poster displays from hub but reverts to composite when on playlist page
uploaded poster are only visible with the posters method or it's endpoint not in the webui
2020-03-18 01:15:43 -04:00
Hellowlol
5553b87539 Update playlist.py
Docs stuff.
2018-12-04 22:00:58 +01:00
Hellowlol
c5083c311c fix test.. 2018-11-17 00:33:56 +01:00
Hellowlol
a1292173c8 docs. 2018-11-17 00:06:33 +01:00
Hellowlol
e6dbf833d4 inital smart playlist 2018-11-16 23:47:49 +01:00
Andrey Yantsen
68fc970d7a Improvements in tests process (#297)
* lets begin

* skip plexpass tests if there is not plexpass on account

* test new myplex attrubutes

* bootstrap: proper photos organisation

* fix rest of photos tests

* fix myplex new attributes test

* fix music bootstrap by setting agent to lastfm

* fix sync tests

* increase bootstrap timeout

* remove timeout from .travis.yml

* do not create playlist-style photoalbums in plex-bootstraptest.py

* allow negative filtering in LibrarySection.search()

* fix sync tests once again

* use sendCrashReports in test_settings

* fix test_settings

* fix test_video

* do not accept eula in bootstrap

* fix PlexServer.isLatest()

* add test against old version of PlexServer

* fix MyPlexAccount.OutOut

* add flag for one-time testing in Travis

* fix test_library onDeck tests

* fix more tests

* use tqdm in plex-bootstraptest for media scanning progress

* create sections one-by-one

* update docs on AlertListener for timeline entries

* fix plex-bootstraptest for server version 1.3.2

* display skip/xpass/xfail reasons

* fix tests on 1.3

* wait for music to be fully processed in plex-bootstraptest

* fix misplaced TEST_ACCOUNT_ONCE

* fix test_myplex_users, not sure if in proper-way

* add pytest-rerunfailures; mark test_myplex_optout as flaky

* fix comment

* Revert "add pytest-rerunfailures; mark test_myplex_optout as flaky"

This reverts commit 580e4c95a7.

* restart plex container on failure

* add conftest.wait_until() and used where some retries are required

* add more wait_until() usage in test_sync

* fix managed user search

* fix updating managed users in myplex

* allow to add new servers to existent users

* add new server to a shared user while bootstrapping

* add some docs on testing process

* perform few attemps when unable to get the claim token

* unlock websocket-client in requirements_dev

* fix docblock in tools/plex-teardowntest

* do not hardcode mediapart size in test_video

* remove cache:pip from travis

* Revert "unlock websocket-client in requirements_dev"

This reverts commit 0d536bd06d.

* remove debug from server.py

* improve webhook tests

* fix type() check to isinstance()

* remove excessive `else` branch due to Hellowlol advice

* add `unknown` as allowed `myPlexMappingState` in test_server
2018-09-14 20:03:23 +02:00
Andrey Yantsen
54b26fdc25 Sync support (#282)
* [sync] initial commit

* fix populating of `state` field in sync.Status

* [connection] add posibliity to return first established connection faster

* [base] add timeout argument to PlexObject.fetchItems()

* [sync] add timeout arg to SyncItem.getMedia()

When you have multiple media within one SyncItem it takes a lot of time
to get all the info for this media (on my machine it takes about a
second for each movie).

* [sync] fix marking media as downloaded

* [sync] pass clientIdentifier to created SyncItem()

* [sync] override __repr__() for sync.Status

* fix after @mikes-nasuni`s review

* fix python2 compatibility

* get rid of sync.init()

* use list comprehension

* remove timeout from PlexObject.fetchItems()

* fix SyncItem under python 2.7

* fix __doc__ in sync module

* revert myplex._connect() back to it`s original state

* improve sync docs

* get rid of PlexObjects where not needed

* add X-Plex-Sync-Version=2 to headers

* add sync() method into Video, LibrarySection and MyPlexAccount

* add SyncItem.delete()

* add sync.Policy.create()

* use self._default_sync_title instead of _prettyfilename as default title

* let the tests begin

* add items for refreshing synclists to PlexServer

* fix sync tests

* sync for everybody!

* add TODO doctring for Audio._defaultSyncTitle()

* SyncItems tag may be presented only once, there is no need for loop

* add more TODO docstrings

* hello docs

* remove relative import

* remove unused variable from tests/test_sync.py
2018-09-08 17:25:16 +02:00
Hellowlol
26bf4ca010 zomg... 2017-10-26 00:01:42 +02:00
Hellowlol
f3a0a8f16e lint 2017-10-11 22:40:10 +02:00
Hellowlol
f52957f099 fix E261 2017-10-09 15:58:44 +02:00
Hellowlol
8910a307f9 Fix tests
Should we just remove the cache and require that the user reloads this?
or i can reload in the tests.
2017-10-09 15:57:37 +02:00
Hellowlol
a39326fab8 inital dunder on Playlist 2017-10-05 22:24:49 +02:00
Michael Shepanski
943aa02e69 Rename playlist.share to playlist.copyToUser; Make plex.myPlexSubscription a bool; Fix a few tests with updated attrs; Skip test_copyToUser if no subscription 2017-08-11 15:14:32 -04:00
Michael Shepanski
48bc16b01c Cleanup doc strings 2017-07-30 00:35:52 -04:00
Hellowlol
a0f030e353 Add a test for share playlist. 2017-07-28 22:29:14 +02:00
Michael Shepanski
cd1a05d770 Make flake8 happy 2017-02-20 00:37:00 -05:00
Michael Shepanski
de69ace19f Go over documentation a bit more; This will never end. 2017-02-13 23:32:27 -05:00
Michael Shepanski
9b791b95e7 Add TAG constant to PlexObjects; Better method to save and build PLEXOBJECTS; All objects in media.py are now registered and can be looked up; Remove __len__ on Library class (it was causing URL to load twice). 2017-02-12 21:55:55 -05:00
Michael Shepanski
5443711b90 Make _query and _url public methods since we use it as such 2017-02-08 23:29:17 -05:00
Michael Shepanski
83a8c5733e Rename _root back to _server but keep it private 2017-02-08 23:13:54 -05:00
Michael Shepanski
bc421490db myplex tests passing 2017-02-07 01:58:29 -05:00
Michael Shepanski
8212ca9c46 Much more stability from yesterday; Easier to use fetchItem funtions; Common __repr__ for all plexobjects; Fix all uses if listItems 2017-02-07 01:20:49 -05:00
Michael Shepanski
6a35f50a43 CHECKPOINT: Lots going on; Added new base class PlexObject that everything inherits from, this ensures all constructors are similar; Lots of work on new tool plexattrs that parses a full Plex library to find differences in attributes plexapi implements and what the Plex XML API offers up; Tests will most definetly be broken at this point, but I wanted to save my work. 2017-02-05 23:52:10 -05:00
Michael Shepanski
fc28f7c1e6 Move Playable and PlexPartialObject to new plexapi.base module 2017-02-04 14:46:51 -05:00
Michael Shepanski
7c766337b6 Remove all references to NA 2017-02-04 12:43:50 -05:00