Commit graph

107 commits

Author SHA1 Message Date
blacktwin
3f2d0766f8
docstring update
adding docstring descriptions for new functions
2019-09-25 09:02:59 -04:00
blacktwin
5365d7d7f8
upload, select, remove subtitles
Movies and Episodes can now have subtitle files uploaded, selected (for user?), and removed.
Episodes was missing subtitleStreams function.
2019-09-23 10:47:12 -04:00
Menushka Weeratunga
074a632304 Fix for episode not containing seasonNumber attribute 2019-09-01 23:35:05 -04:00
Ty Hahn
37727a69ed Add rate function to video 2019-08-07 05:45:21 +09:00
Peter Brink
4339626800 added collection to show object for tagging 2019-05-29 02:52:50 -04:00
gstacks13
77b1ee721d Get season from index instead of creating title 2019-02-21 11:56:51 -06:00
Michael Shepanski
e6ca501610
Merge pull request #339 from gstacks13/fix_show_season_0
Fix Show.season(0) not returning 'Specials'
2019-02-11 09:16:39 -05:00
gstacks13
433e4c402a Fix show.episode() not allowing season 0 2019-02-10 14:45:13 -06:00
gstacks13
58862b74ba Fix Show.season(0) not returning 'Specials' 2019-02-07 02:24:00 -06:00
David Roizenman
3719d4b599 Fix spelling of "original" 2019-01-07 08:04:53 -05:00
Andrey Yantsen
7a67417615 fix docs for Raises clauses 2018-10-03 11:09:43 +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
f6aa27eb83 ffs 2018-03-02 20:13:51 +01:00
Hellowlol
a322574dc6 WTF. why is a key in history None?? 2018-03-02 20:13:38 +01:00
Hellowlol
30ec806536 fix some docs. 2018-03-02 18:43:31 +01:00
Hellowlol
eb337ce585 Add support for similar for tvshows and movies. 2018-03-02 18:27:57 +01:00
Hellowlol
bb55a00f52 really need to sanity check on this one.. 2018-03-02 17:08:10 +01:00
Hellowlol
9d364e4860 init chapters. 2018-03-02 13:15:15 +01:00
Hellowlol
a51d0225d1 Remove style error enforced by travis. 2018-02-22 12:36:31 +01:00
Hellowlol
807d833ceb move update progress so we can use it on music. 2018-02-22 12:29:39 +01:00
David Van Loon
f5af5d0e10
Add updateProgress function to Video 2018-02-17 23:32:29 -06:00
Michael Shepanski
61ede66ad5 Dont include token in URLs unless show_secrets set in config; All functions that return a URL such as stream urls and thumbnails still include token 2018-01-04 21:44:35 -05:00
Hellowlol
d3e4c63dd4 add url method, artUrl
change reload waning to debug.
2017-11-08 22:01:53 +01:00
Michael Shepanski
973e5558ee Merge pull request #211 from pkkid/add_missing_label_tvshow
Add missing labels to cls show
2017-10-11 23:26:22 -04:00
Hellowlol
e402c3227b make media iterable.
they will yield the next lower level. so a show will iter a season a
season will yield a episode etc.
2017-10-09 16:07:09 +02:00
Hellowlol
ef7b631e82 Add missing labels to cls show 2017-10-09 15:40:46 +02:00
Michael Shepanski
8507c603b4 Update video.py 2017-09-29 12:11:14 -04:00
Michael Shepanski
67c859d584 Update video.py 2017-09-29 12:10:55 -04:00
tdorsey
e0a213c5e4 Fix TypeError when viewCount is not set
Fixes #190
2017-09-28 06:43:49 -04:00
Nitemare
acdff9baa6 Update video.py
Undoing my error, not sure if this is necessary
2017-09-16 00:05:28 -03:00
Nitemare
e648f0d40b Update video.py
Adding seasonEpisode method that is listed in the documentation, but not in actually implimented
2017-09-15 23:19:33 -03:00
Nitemare
133d2f42ce Update video.py
Adding title and parentTitle to Episode variables (Lines 475 & 476)
2017-09-15 23:06:00 -03:00
Hellowlol
5d60f69610 rating should be a float, this slipped thru the cracks. 2017-08-20 22:30:50 +02:00
Hellowlol
72094fce40 More tests fixes 2017-08-18 21:44:40 +02:00
Michael Shepanski
d7276e2e82 Add tqdm requirement; Display download status in plex-download 2017-08-14 23:40:28 -04:00
Hellowlol
5bfa96b49c Add missing labels and collections from the classes 2017-07-22 01:07:31 +02:00
Michael Shepanski
650a88d638 Started movinf client tests into Pytest framework 2017-05-12 23:25:57 -04:00
Michael Shepanski
43444459e3 Tighten up download code a bit; downloadLogs and DownloadDatabases were reversed (oops) 2017-02-26 23:59:46 -05:00
Michael Shepanski
cd1a05d770 Make flake8 happy 2017-02-20 00:37:00 -05:00
Hellowlol
c7c04d2a42 Add indexes. Closes https://github.com/pkkid/python-plexapi/issues/121 2017-02-18 01:51:06 +01:00
Michael Shepanski
12406082ec Choose Closest Thumbnail for Audio Tracks #102 2017-02-15 00:13:22 -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
fc1c10e554 Finish documenting video 2017-02-13 14:38:40 -05:00
Michael Shepanski
c0958a0edc only auto-connect to clients is baseurl and token passed 2017-02-13 01:37:23 -05:00
Michael Shepanski
9052cf7be2 Remove findLocations util function; All locations plural; Fix tests 2017-02-12 22:33:38 -05:00
Michael Shepanski
4b8f82291b Remove findLocations util function 2017-02-12 22:15:47 -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
08e61960e7 Move common methods to PlexPartialObject; More documentation 2017-02-09 15:01:23 -05:00
Michael Shepanski
6fa7c12c48 Implement fetchItem filters; All tests passing? 2017-02-09 01:54:38 -05:00