Commit graph

224 commits

Author SHA1 Message Date
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
d433c0b3d4
Update locations doc strings for consistency 2020-12-23 20:40:08 -08:00
JonnyWong16
41342b4f7b
Replace use of etag with class 2020-12-23 20:39:15 -08:00
JonnyWong16
1c5942986d
Update video attributes 2020-12-23 15:53:57 -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
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
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
d59d199ee7
Always build default details key 2020-11-21 12:08:27 -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
blacktwin
56b6138ca7
Merge branch 'master' into show_advanced_setting 2020-09-28 08:12:39 -04:00
jjlawren
5b7d48fc26
Improve clips handling (#541)
* Improve clips handling

* Remove year, add extraType

* Don't bother refreshing for missing attribute

* Update with attributes found in payload

* Update docstrings for clips
2020-08-20 10:08:47 -05:00
Steffen Fredriksen
07674a2c65
Merge pull request #512 from pkkid/optimize_update
Video optimize update
2020-08-02 16:11:05 +02:00
blacktwin
18973e2f2d update editAdvanced method to work with py2 drop 2020-07-28 11:16:31 -04:00
blacktwin
252d7e05a8 update video.Video.optimize method to use new library.LibrarySection._locations method 2020-07-24 14:11:01 -04:00
blacktwin
6dc19386c2 adding art attribute to video.Video
addressing #511
2020-06-12 13:22:15 -04:00
blacktwin
ffe07ac1c6 video.optimize method docstring update. 2020-06-09 15:58:08 -04:00
blacktwin
43b1bfb64b update video.optimize method to use new Locations attributes 2020-06-09 15:57:47 -04:00
blacktwin
de47470a43 adding fields attribute to video.Video
docstring update
2020-06-05 15:42:03 -04:00
blacktwin
d0975a8a73 docstrings for new methods. 2020-06-05 14:20:39 -04:00
blacktwin
2c256f89c2 add _initpath to Preferences atrributes 2020-06-05 14:12:30 -04:00
blacktwin
afe25d19ac create defaultAdvanced method
allows for defaulting all advanced settings
2020-06-05 13:48:34 -04:00
blacktwin
0dbdff4b03 create editAdvanced method
allow for editing a show's advanced settings using kwargs
2020-06-05 13:41:48 -04:00
blacktwin
2d4a919a40 resolving conflict 2020-05-27 21:53:04 -04:00
blacktwin
558eafa44f no need for double bool 2020-05-27 12:26:54 -04:00
blacktwin
660a665366 only check for intro markers in case Plex decides to add different marker types in the future
thanks @jonnywong16
2020-05-27 12:15:56 -04:00
blacktwin
a2ef4a5564 create hasIntroMarker method to quickly identify if an episode has an intro marker 2020-05-24 22:57:02 -04:00
blacktwin
8a744f85f4 correcting onDeck docstring 2020-05-24 22:24:32 -04:00
blacktwin
1cfc9869d1 create ondeck method for shows 2020-05-23 23:30:44 -04:00
blacktwin
ce3fcc9b9d update hubs method 2020-05-23 23:30:21 -04:00
blacktwin
81339cc3dc import library and create hubs method 2020-05-23 23:20:22 -04:00
blacktwin
6a69fe4810 create preferences method 2020-05-23 23:07:44 -04:00
blacktwin
4db38e6832 add _include to show
add _details_key to show
2020-05-23 23:07:21 -04:00
blacktwin
a771feac35 import settings 2020-05-23 23:06:05 -04:00
blacktwin
65271c351d update episodes _include to include markers
add markers attrib to episode
2020-05-23 02:12:36 -04:00
blacktwin
3a95f55b7e
Merge pull request #410 from pkkid/new_hubs
new_hubs
2020-04-13 13:44:34 -04:00
blacktwin
2235cafaf1
Merge branch 'master' into poster_change 2020-04-12 22:45:31 -04:00
blacktwin
4cbccabee8
Merge branch 'master' into new_hubs 2020-04-12 22:40:15 -04:00
blacktwin
839a9da41d
Merge branch 'master' into conversion_actions 2020-04-07 09:21:32 -04:00
Hellowlol
18afdc2ec8 some linting 2020-03-14 15:52:54 +01:00
blacktwin
1abcff8eee remove poster related methods
to be moved to base to encompass all item types
2020-03-13 16:40:10 -04:00
blacktwin
6ce9917622 adding setPoster in Video class instead of or in combination to Poster class 2020-03-12 14:57:02 -04:00
blacktwin
06ae46959c create uploadPoster
allow for url or filepaths
once uploaded it is automatically selected
2020-03-12 10:26:55 -04:00
blacktwin
b7c9e31da2 minor docstring update 2020-03-12 10:25:56 -04:00
blacktwin
945f14fe3a is instead of == None
correction found in Flake test
2020-02-25 16:50:08 -05:00
blacktwin
ecefdbba6a remove unused import of quote
found in Flake test
2020-02-25 16:47:51 -05:00
Jason Lawrence
7fb01a567f Lookup episode/season show() with RatingKeys 2020-02-25 12:39:36 -06:00
blacktwin
d9e3b9fba5 dropping quote_via for backwards compatibility
seems unneeded now after testing
2020-02-17 21:50:00 -05:00
blacktwin
185319b73a find server's backgroundProcessing key 2020-02-17 17:17:36 -05:00
blacktwin
0854325324 optimize method rewrite
dict instead of string
big help from @JonnyWong16
2020-01-30 14:12:33 -05:00
blacktwin
d23c81c15c test header removal 2020-01-30 11:28:33 -05:00
blacktwin
7fbdd72e28 tagValues formating 2020-01-30 11:25:45 -05:00
blacktwin
8c2ea6f993 add optimize method 2020-01-30 10:55:29 -05:00
blacktwin
fc28d7210f Adding Clip class for news 2019-12-05 13:02:50 -05:00
blacktwin
b59aab15b2 remove reloads in new functions. 2019-11-20 11:40:49 -05:00
blacktwin
bd9e1db4dc
Merge branch 'master' into patch-8 2019-11-11 15:42:18 -05:00
blacktwin
be09f44ae3 Fix posters function based on PR comment 2019-11-06 09:28:56 -05:00
blacktwin
76f77a554e Comment corrections
remove attribute and rename function
2019-10-12 14:48:02 -04:00
blacktwin
4db275df0d
Corrections from comments
Moved all subtitle functions to parent Video class.
Add to removeSubtitles docstring how subtitle files are handled when removed.
2019-10-12 14:40:43 -04:00
blacktwin
c857feb52c add _posters function and poster attribute to video class
docstring updated
2019-10-09 10:45:48 -04:00
blacktwin
d23b9a0a80 adding uploadSubtitles and removeSubtitles functions 2019-10-04 22:32:56 -04:00
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