Commit graph

160 commits

Author SHA1 Message Date
JonnyWong16
7f7d03236b
Fix docstrings 2020-11-22 19:06:30 -08:00
blacktwin
c6458a41a5 addressing #587 2020-10-21 08:58:56 -04:00
blacktwin
1f683c514b
Merge branch 'master' into reviews_extras 2020-10-07 11:18:28 -04:00
blacktwin
7d97834b03
Merge branch 'master' into library_hubs 2020-08-02 23:44:11 -04:00
blacktwin
4b908a8f2d create media.Review class 2020-07-15 14:37:46 -04:00
blacktwin
3746b4ecb5 removal of registerPlexObject as the only usage calls this class directly. 2020-06-29 13:39:48 -04:00
Hellowlol
d7c215b119 Small change to the repr and add test. 2020-06-14 20:21:46 +02:00
blacktwin
881a4fc659 use utils.millisecondToHuman for media.Marker.__repr__ 2020-06-13 22:12:35 -04:00
blacktwin
1f396ca95a
remove field attribute
Addressing #504 

remove field attribute as it is no longer available.
adding `__repr__` to Marker class resulting in `<Marker:intro:139770:230481>`
2020-06-04 23:21:03 -04:00
blacktwin
1d8d76ef56
Merge branch 'master' into intro_marker 2020-05-27 21:48:41 -04:00
blacktwin
61c0669905 create Marker class 2020-05-23 02:09:22 -04:00
Hellowlol
940efc0013 first pass on compat. 2020-05-12 23:15:16 +02:00
blacktwin
37b4c8729d
Merge pull request #452 from jjlawren/fix_docstrings
Fix docstrings for tests
2020-04-16 17:20:33 -04:00
Jason Lawrence
9baff74a89 Fix example 2020-04-16 16:18:38 -05:00
Jason Lawrence
a1332434f1 Fix docstrings for tests, remove unused param 2020-04-15 22:49:18 -05:00
Hellowlol
cc71daeaba sync 2020-04-15 20:41:15 +02:00
blacktwin
319fe52d0a
Merge branch 'master' into poster_change 2020-04-12 23:04:19 -04:00
blacktwin
2235cafaf1
Merge branch 'master' into poster_change 2020-04-12 22:45:31 -04:00
blacktwin
bef40a74f5
Merge branch 'master' into unmatch_match 2020-04-12 22:37:50 -04:00
blacktwin
d7d2d5aa56 flake fix
indention and newline at end of file
2020-04-12 22:36:44 -04:00
blacktwin
165c19fb6c if mediaType is in initpath also capture name 2020-03-17 13:42:24 -04:00
blacktwin
54a88da39b if mediaType is in initpath call is from library
if not call is from server
2020-03-16 15:12:41 -04:00
blacktwin
a9b149766b change code attribute to languageCode 2020-03-16 15:10:37 -04:00
blacktwin
c061986a44 update SeachResults __repr__ to show name and score. 2020-03-16 14:09:41 -04:00
blacktwin
af586fa55d cast AgentMediaType mediaType to int 2020-03-16 13:53:10 -04:00
blacktwin
99bfdb8129 add __repr__ to Agent and AgentMediaType classes 2020-03-16 13:52:35 -04:00
blacktwin
1b6e16ea21 add mediaTypes to capture additional Agent data
MediatType is the sub element inside Agents xml
create AgentMediaType for gathering sub element information
2020-03-16 13:32:20 -04:00
blacktwin
cfbde385e2 create _settings method to capture agent setting information 2020-03-16 11:15:46 -04:00
Hellowlol
06ca74dbce Some lint and silence the error 2020-03-14 15:35:56 +01:00
blacktwin
4623a54cc8 create select method for Poster class
this will cause a parsing error from xml.Elemtree but the poster will change.
2020-03-12 10:24:29 -04:00
blacktwin
e62992afa9 add compat to import listing
use of compat.quote_plus
2020-03-12 10:23:15 -04:00
blacktwin
dea84935a6 cast SearchResult score attribute to an int 2020-03-10 16:41:27 -04:00
blacktwin
96cb0eb70a add shortIdentifier attribute to Agent 2020-03-10 16:17:24 -04:00
blacktwin
b296cc462e create Agent media class 2020-03-10 16:06:43 -04:00
blacktwin
95114c4a35 create SearchResult class 2020-03-04 16:21:13 -05:00
blacktwin
4f6ee3c251 indention correction found in Flake test 2020-02-25 16:47:03 -05:00
blacktwin
61933c4030 added reprocess method for Optimized class 2020-01-30 10:46:18 -05:00
blacktwin
390db12f86 spacing 2020-01-29 09:45:58 -05:00
blacktwin
00b8925632 Add move method for Conversion items.
Provided example in docstring.
2020-01-29 09:45:44 -05:00
blacktwin
ad3ce64703 Add remove method for Conversion items. 2020-01-29 09:20:17 -05:00
blacktwin
ce6dec2b1d Add remove and rename methods for Optimized items. 2020-01-29 09:19:52 -05:00
blacktwin
a615d17e3b Update Conversion class docstring 2020-01-29 09:17:20 -05:00
blacktwin
0e886207fc Create TrancodeJob class
Update docstring for Optimized class
2020-01-29 09:06:43 -05:00
Steffen Fredriksen
c3e16b2d36
Merge pull request #388 from pkkid/conversions
conversions
2020-01-28 17:12:41 +01:00
blacktwin
6aca1e5e50 corrected Optimized TAG 2020-01-27 14:17:49 -05:00
blacktwin
ad2de7c9a6 correct Conversion TAG 2020-01-27 14:16:41 -05:00
Steffen Fredriksen
ba1f3a2b69
Merge pull request #400 from pkkid/photo_tags
photo_tags
2019-11-28 23:14:45 +01:00
blacktwin
65bb149d7d add tag class for media 2019-11-11 09:32:55 -05:00
blacktwin
e62dff0a09 Correct Poster TAG 2019-11-06 09:28:19 -05:00
blacktwin
8a2b8ad9c0 add _data attrib to Optimized and Conversion 2019-10-10 11:30:29 -04:00
blacktwin
c29563632b new Conversion class 2019-10-10 11:11:43 -04:00
blacktwin
dc6c1f1168 renaming correction 2019-10-10 10:43:52 -04:00
blacktwin
ceb9797ab4 add Conversion attrib targetTagID 2019-10-09 22:28:15 -04:00
blacktwin
8ee383cd3d create poster object in media 2019-10-09 10:44:51 -04:00
blacktwin
fbfcf64a41 conversion docstring 2019-10-08 23:53:31 -04:00
blacktwin
63024025ce create Conversion object 2019-10-08 23:26:42 -04:00
blacktwin
8c78fbacd8
add attributes
adding attributes for exists and accessible.
2019-09-30 20:53:50 -04:00
Andrey Yantsen
97e5383d54 fix few more flake8 warnings from recent PR 2019-02-07 11:09:07 +00:00
Michael Shepanski
99efddf49f
Merge pull request #336 from gstacks13/set_default_streams
Closes #334 - set default audio & subtitle stream
Thanks for the updates!
2019-02-06 19:03:36 -05:00
gstacks13
e830f74436 Tidying up, as requested. 2019-02-06 17:22:28 -06:00
gstacks13
5270395b3a Only pass stream object to function 2019-02-04 20:07:22 -06:00
gstacks13
1c95e7165c Pass either stream or stream.id 2019-02-04 16:28:30 -06:00
Gabriel Stackhouse
a554aec872 Removed a space 2019-02-04 13:52:16 -06:00
Gabriel Stackhouse
d2c7feeaac Closes #334 - set default audio & subtitle stream 2019-02-04 13:45:49 -06:00
Gabriel Stackhouse
14fdc51b37 Add 'forced' var to subtitleStream 2019-02-04 13:15:05 -06:00
blacktwin
60fe55e722
Update media.py
videoProfile doc
2018-10-02 10:52:32 -04:00
blacktwin
a394db6acc
additional attributes
target, title and video profile.  Optimizing items through Plex now allows for adding a title to the version. Target and title are the version name and seem to be the same value.
2018-09-20 09:56:12 -04: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
b401ef3cc2
Merge pull request #258 from pkkid/chap
Chap
2018-04-03 01:53:54 +02:00
shawnsethi
5696110b08
Add sourceVideoCodec to TranscodeSession 2018-03-20 11:30:07 -04:00
Hellowlol
eb337ce585 Add support for similar for tvshows and movies. 2018-03-02 18:27:57 +01:00
Hellowlol
9d364e4860 init chapters. 2018-03-02 13:15:15 +01:00
Hellowlol
0594f24f8b mock delete properly 2017-10-26 23:55:59 +02:00
Hellowlol
828b41e0ec delete should be part of the media not the media part 2017-09-30 23:16:40 +02:00
Hellowlol
e2f90ea81d add broken delete to parts. 2017-09-30 19:45:35 +02: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
14f70620ab Update media.py 2017-02-26 21:12:56 -05:00
Hellowlol
a4abc0e223 fixup 2017-02-27 01:35:22 +01:00
Hellowlol
cbde4787cc Add stop playback. 2017-02-26 23:31:09 +01:00
Hellowlol
53fab6239a fix tests for download logs/dbs
fix clients. Clients now tries to get info from plex.tv resources in the
port is missing.
add quote_plus to compat
2017-02-26 22:47:40 +01: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
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
83a8c5733e Rename _root back to _server but keep it private 2017-02-08 23:13:54 -05:00
Michael Shepanski
e3abfeeb0f Audio tests passing 2017-02-08 00:36:22 -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
4624512356 A few more updates to get plexattrs.py fully running 2017-02-06 01:28:58 -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
6e893d8fbf Started work on script to analyze Plex attributes with what we defined in plexapi so we can easily find mismatches 2017-02-04 03:08:47 -05:00
Michael Shepanski
0a66414fcd Add ability to dig deeper in the MediaTag search results. For example: Genre.items() will return the list of items for that tag if the key attribute is available 2017-02-03 02:15:41 -05:00
Michael Shepanski
f479b8453b Merge branch 'master' into hub 2017-02-02 22:23:46 -05:00
Michael Shepanski
cec0ab07e8 Cleanup formatting 2017-02-01 22:53:05 -05:00
Michael Shepanski
04251d3805 Finish documenting Photo; Monkey-patch sphinx to not auto-link to unknown types; Remove links to ElementTree (not our code) 2017-01-30 23:44:03 -05:00
Hellowlol
1abb1456f8 Inital hub. 2017-01-04 00:00:28 +01:00
logaritmisk
1cb35da6f1 Added Field tag to video. 2016-10-02 22:05:37 +02:00
Michael Shepanski
09a7ae80db Basic support for photos complete 2016-04-09 23:59:47 -04:00
Michael Shepanski
84a6999ed7 Ability to directly create a PlexClient object (without needing a PlexServer object); Cleaned up MyPlex code; Removed duplicated Client navigation code from myplex (everything uses PlexClient now) 2016-04-02 02:19:32 -04:00
Michael Shepanski
b10faf8560 Checkpoint: New implementation for search 2016-03-31 16:52:48 -04:00