Commit graph

746 commits

Author SHA1 Message Date
blacktwin
d69760e3e5 fix Collection posters method's key 2020-03-18 09:39:44 -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
8320359b5e Revert "fix for setPoster returning the new selected posters thumb path setPoster's response.encoding will be None all others are str"
This reverts commit c72cc245
2020-03-18 01:24:20 -04:00
blacktwin
7190d9cb15 Merge remote-tracking branch 'origin/poster_change' into poster_change 2020-03-18 01:17:17 -04:00
blacktwin
53a61561b1 fix filepath in uploadPoster for Collections 2020-03-18 01:16:26 -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
blacktwin
dedab2b5f5 posters methods for collections 2020-03-18 00:55:38 -04:00
blacktwin
623c304fda setPoster docstring 2020-03-18 00:55:17 -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
Hellowlol
18afdc2ec8 some linting 2020-03-14 15:52:54 +01:00
Steffen Fredriksen
c0f2c05627
Merge pull request #433 from pkkid/allowMediaDeletion
allowMediaDeletion
2020-03-14 15:39:12 +01:00
Hellowlol
06ca74dbce Some lint and silence the error 2020-03-14 15:35:56 +01: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
c72cc24584 fix for setPoster returning the new selected posters thumb path
setPoster's response.encoding will be None all others are str
2020-03-13 21:47:56 -04:00
blacktwin
47950201b0 moved poster related methods to base PlexPartialObject class 2020-03-13 16:43:06 -04: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
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
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
blacktwin
59bca994e5 adding logging for toggle and redundant toggle 2020-02-26 08:56:29 -05:00
blacktwin
9cfbeb9421 docstring update showing default 2020-02-26 08:55:44 -05:00
blacktwin
6cf18148a0 toggle keyword default to False 2020-02-26 08:55:24 -05: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
blacktwin
4f6ee3c251 indention correction found in Flake test 2020-02-25 16:47:03 -05:00
blacktwin
ba75935e0b create _allowMediaDeletion method in server.py 2020-02-25 16:39:49 -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
3ca655b9a8 update news method with correct url 2020-02-10 11:18:42 -05:00
blacktwin
11a1b6e449 remove 'hubs/' from global vars and append to methods
setting global var without hubs for future reference
2020-02-10 11:13:53 -05:00
blacktwin
0dfae68830 update NEWS endpoint 2020-02-06 13:23:07 -05:00
blacktwin
0259eeacbe correct new tidal method 2020-02-06 13:06:39 -05:00
blacktwin
25431b0e9a correct new podcasts method 2020-02-06 13:06:26 -05:00
blacktwin
6469e68070 correct new news method 2020-02-06 13:06:11 -05:00
blacktwin
e399e54d6a correct new webShows method 2020-02-06 13:05:50 -05:00
blacktwin
88b5016fb8 correct new videoOnDemand method 2020-02-06 13:05:19 -05:00
blacktwin
2d53f5bab8 remove batchingItems method as it is not used. 2020-02-06 13:02:53 -05:00
blacktwin
ee77bf2b9e add key attribute to Hub class 2020-02-06 13:02:14 -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
3a78234ae5 add quote import for optimizing items 2020-01-30 10:46:58 -05:00
blacktwin
61933c4030 added reprocess method for Optimized class 2020-01-30 10:46:18 -05:00
blacktwin
74c9a9a2b8 add optimizedItem method 2020-01-30 10:45:14 -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
37e3f092ef Add pause option to conversions 2020-01-29 09:16:13 -05:00
blacktwin
bc316a6c9b add removeAll option to optimiziedItems 2020-01-29 09:15:45 -05:00
blacktwin
0a6a6d0a03 add currentBackgroundProcess method
uses TranscodeJob media class
2020-01-29 09:11:07 -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
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
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