Commit graph

966 commits

Author SHA1 Message Date
blacktwin
2a198f5cb8 flake fix
missing return
2020-04-12 22:35:22 -04:00
blacktwin
28d8b862ab detailed example for using matches method
thanks @jonnywong16
2020-03-17 14:06:05 -04:00
blacktwin
e44513c44d update matches method to operate more closely to webui
thanks @jonnywong16
2020-03-17 14:05:29 -04:00
blacktwin
54c871fc01 create getAgentIdentifier method in utils
Return the full agent identifier from a short identifier, name, or confirm full identifier
thanks @jonnywong16
2020-03-17 14:00:41 -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
98226c044b use server.agents() mediaType keyword to shorten code
Thanks @jonnywong16
2020-03-16 14:26:01 -04:00
blacktwin
2ab3b61447 add mediaType keyword to agents method
Thanks @jonnywong16
2020-03-16 14:25:26 -04:00
blacktwin
c061986a44 update SeachResults __repr__ to show name and score. 2020-03-16 14:09:41 -04:00
blacktwin
b54f61d1cf only allow sections available agents to be used. 2020-03-16 14:05:45 -04:00
blacktwin
cea4f1944e add agents method to library
allow the searching for available agents for specific library
2020-03-16 13:54:16 -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
07e3d66b4f server agents method docstring minor update 2020-03-16 13:51:36 -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
322c3427a1 use fetchItems instead, reduce redundancy 2020-03-16 13:23:33 -04:00
blacktwin
4a7aac16be update LibrarySection's edit method to include agent if not provided
should allow for edits that are not agent changes to be easier
2020-03-16 11:56:16 -04:00
blacktwin
cfbde385e2 create _settings method to capture agent setting information 2020-03-16 11:15:46 -04:00
blacktwin
46e8b8e155 update Setting _cast method
change exclusion from text to enum
text type is available in TYPES dict for casting
2020-03-16 11:13:51 -04:00
blacktwin
1d05304643 create settings method for LibrarySection
return current library settings
2020-03-16 11:12:28 -04:00
blacktwin
8d334ce47f allow for casting str to bool 2020-03-16 11:03:39 -04:00
blacktwin
30974f807b fixMatch docstring update 2020-03-14 23:39:19 -04:00
blacktwin
07cf7d16e4 fixMatch rework not so not-y 2020-03-14 23:39:04 -04:00
blacktwin
86c722f8bd docstring updates 2020-03-14 23:37:51 -04:00
blacktwin
dc5d147315 update fixMatch to allow for auto fixmatch
auto will select the first searchResult from matches
2020-03-14 23:06:32 -04:00
blacktwin
38b0fee6c9 adding unmatch/match methods from video:Movie and video:Show classes to base:PlexPartialObject
minor improvements to matches method thanks to @JonnyWong16
matching can be done for artists, albums, shows, movies
all other media types safely return an empty list []
2020-03-13 22:22:30 -04:00
blacktwin
c2c13fbfe2 removing unmatch/match methods from video:Movie and video:Show classes
matching can be done for artists, albums, shows, movies
2020-03-13 22:20:26 -04:00
blacktwin
1f743684c5 minor docstring edits 2020-03-10 16:46:14 -04:00
blacktwin
dea84935a6 cast SearchResult score attribute to an int 2020-03-10 16:41:27 -04:00
blacktwin
3f9dbd6175 update Show matches for manual searching 2020-03-10 16:27:21 -04:00
blacktwin
ac2955b2f5 update Movie matches for manual searching 2020-03-10 16:27:03 -04:00
blacktwin
f6fb3f4ff2 add quote import for titles in matches method 2020-03-10 16:25:31 -04:00
blacktwin
96cb0eb70a add shortIdentifier attribute to Agent 2020-03-10 16:17:24 -04:00
blacktwin
3418acf317 create agents method in server 2020-03-10 16:07:29 -04:00
blacktwin
b296cc462e create Agent media class 2020-03-10 16:06:43 -04:00
blacktwin
39bb93f35b add unmatch, matches, and fixMatches methods for shows
matches will need additional work for manual matches
2020-03-04 16:22:49 -05:00
blacktwin
4c9aef21c7 add unmatch, matches, and fixMatches methods for movies
matches will need additional work for manual matches
2020-03-04 16:22:37 -05:00
blacktwin
95114c4a35 create SearchResult class 2020-03-04 16:21:13 -05:00
blacktwin
f40d1da82a add urlencode 2020-03-04 16:19:36 -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
2da4d2bf68 use fetchItem and fetchItems instead of query 2020-01-27 14:17:23 -05:00
blacktwin
ad2de7c9a6 correct Conversion TAG 2020-01-27 14:16:41 -05:00
blacktwin
0fa9ced744 change conversions method to use fetchItems
assuming all server's conversion playQueue is 1
2020-01-27 14:16:12 -05:00
Steffen Fredriksen
ddcc6dca5c
Merge pull request #415 from andy-maier/andy/test-install
Verified correct installation of plexapi in Travis
2019-12-31 14:08:49 +01:00
Steffen Fredriksen
31e94db88b
Merge pull request #417 from andy-maier/andy/fix-flake8
Fixed flake8 errors in alert.py and base.py
2019-12-31 14:08:38 +01:00
Andreas Maier
c132a6dcb8 Fixed flake8 errors in alert.py and base.py
Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
2019-12-31 14:06:56 +01:00
Andreas Maier
1751dbaa14 Verified correct installation of plexapi in Travis
The missed dependency to the 'mock' package on Python 2.7 made it clear
that this went by undetected in the Travis runs.

This change updates the Travis control file to verify that the plexapi
package can be successfully imported after being installed from the
working directory using pip.

Because the installation of py.test drags in a lot of dependencies,
it was moved after the installation of plexapi.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
2019-12-31 13:49:25 +01:00
Steffen Fredriksen
d20f9bea4b
Merge pull request #414 from andy-maier/andy/fix-mock-dependency
Added dependency to mock package for Python <3.3
2019-12-31 13:46:40 +01:00