Commit graph

1006 commits

Author SHA1 Message Date
Hellowlol
d9442f3e2b Update gdm.py 2020-05-02 01:02:48 +03:00
Hellowlol
187550e26b fix docstrings. 2020-05-02 00:57:49 +03:00
Hellowlol
c466b096ef Allow int to pass aswell
Supports int, strings, list off ids.¨
This bugs like this happens when your watcking tv at the same time ¯\_(ツ)_/¯
2020-05-02 00:41:56 +03:00
Hellowlol
201466a52f Allow failure 2020-05-02 00:32:46 +03:00
Hellowlol
6a3e7a0273 fix bug 2020-05-02 00:22:11 +03:00
Hellowlol
e3dc61d399 add merge method 2020-05-02 00:02:45 +03:00
Steffen Fredriksen
437eea8dfc
Merge pull request #466 from pkkid/batchsearch
Make it easier to set a container size using search
2020-05-01 21:08:51 +03:00
blacktwin
25ae83c7bd add agent to fixMatch docstring 2020-04-29 21:10:48 -04:00
blacktwin
911fb7e680 add agent keyword to fixMatch method
allows for auto matching with a different agent than library set agent
2020-04-29 21:10:28 -04:00
blacktwin
517c9fb670 change if statement to caught any not None keywords
allowing for `title="",year=""` to work correctly
2020-04-29 21:09:16 -04:00
Jason Lawrence
c4c90acd34 Remove f-string for py2 compatibility 2020-04-29 11:21:50 -05:00
Jason Lawrence
1275f7c0d1 Format with black 2020-04-29 08:42:31 -05:00
Hellowlol
1e77e76fb0 Add log message
Add some test that verify that we cant get in a enless loop and handle container_start corrently.
2020-04-29 14:42:19 +03:00
Jason Lawrence
95188b0f72 Add Sonos cache & speaker lookup methods, set X-Plex-Client-Identifier 2020-04-28 15:19:18 -05:00
Jason Lawrence
55b335ee7c Add lookup & control of linked Sonos speakers 2020-04-28 14:06:26 -05:00
Hellowlol
5a2f14e645 Update based on comments. 2020-04-27 19:22:10 +03:00
Hellowlol
1ba8fe77f7 Add misssing docstring
fix comment.
2020-04-27 00:29:28 +03:00
Hellowlol
0647c714a3 only update if all is in the url 2020-04-27 00:14:00 +03:00
Hellowlol
db1f9a9b39 use cast 2020-04-27 00:05:23 +03:00
Hellowlol
66df034023 add fetchItems to library
use totalSize so we dont do any more http requests then needed.
2020-04-26 23:51:57 +03:00
Hellowlol
91d76a5d94 Make it easier to set a container size using search 2020-04-26 23:34:13 +03:00
Hellowlol
93dda3c9e5 reduce loglevel 2020-04-26 22:55:54 +03:00
Steffen Fredriksen
6eea7cce0f
Allow pagination (#464)
Allow pagination on fetchItems
2020-04-26 21:18:52 +02:00
Sascha Montellese
62cb7585ca Add myplex.MyPlexPinLogin 2020-04-20 23:14:15 +02:00
jjlawren
74ae49ee3c
Bump to 3.4.0 for release (#459) 2020-04-17 11:01:41 -05: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
jjlawren
6e1fac7984
Fix client control on unclaimed servers (#456) 2020-04-16 14:06:36 -05:00
Steffen Fredriksen
0da9e3994a
Merge pull request #451 from jjlawren/raise_notfound
Raise NotFound on 404 errors
2020-04-16 14:41:14 +02:00
Jason Lawrence
a1332434f1 Fix docstrings for tests, remove unused param 2020-04-15 22:49:18 -05:00
Hellowlol
b01d808dc9 fix bug 2020-04-16 01:01:45 +02:00
Hellowlol
e0d5a873e1 misc fixes 2020-04-16 00:30:00 +02:00
Jason Lawrence
a6cfe4225a Raise NotFound on 404 errors 2020-04-15 17:09:27 -05:00
Hellowlol
ed3d16d1b0 som pytest 4 compat
and change to client timeline is can respond quicker.
2020-04-15 22:53:17 +02:00
Hellowlol
cc71daeaba sync 2020-04-15 20:41:15 +02:00
blacktwin
3a95f55b7e
Merge pull request #410 from pkkid/new_hubs
new_hubs
2020-04-13 13:44:34 -04:00
blacktwin
ba1559dcdc flake fix
line too long
2020-04-13 13:30:54 -04:00
blacktwin
a47f67d3df Merge remote-tracking branch 'origin/new_hubs' into new_hubs 2020-04-13 13:26:49 -04:00
blacktwin
efad7ebe44 flake fix
remove unused import X_PLEX_CONTAINER_SIZE
2020-04-13 13:26:15 -04: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
4cbccabee8
Merge branch 'master' into new_hubs 2020-04-12 22:40:15 -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
fb1ea67a40 flake fix
remove unused imports
2020-04-12 22:35:48 -04:00
blacktwin
2a198f5cb8 flake fix
missing return
2020-04-12 22:35:22 -04:00
blacktwin
0a77c74466
Merge pull request #426 from pkkid/conversion_actions
conversion_actions
2020-04-12 22:34:51 -04:00
jjlawren
e9ecb595a6
Raise exception when empty key passed to fetchItem* (#432) 2020-04-11 08:30:05 -05:00
jjlawren
cbdf5ec998
Fix playMedia() calls with a PlayQueue (#446)
* Fix playMedia() calls with a PlayQueue

* Fix playlists, simplify
2020-04-09 22:34:14 -05:00
jjlawren
dd91ae41f4
Use Unauthorized exception (#447)
* Use Unauthorized exception in server, myplex, client
2020-04-09 15:56:26 -05:00
blacktwin
839a9da41d
Merge branch 'master' into conversion_actions 2020-04-07 09:21:32 -04:00
Jason Lawrence
ee5983f966 Remove type hinting for compatibility 2020-04-01 21:11:21 -05:00
Jason Lawrence
e97a39b427 Add support to scan for Plex clients 2020-04-01 15:56:36 -05:00
Jason Lawrence
2af89742ff Add GDM implementation from netdisco 2020-04-01 15:55:51 -05:00
Jason Lawrence
f07766f409 Fix bad indents in media.py 2020-03-31 07:32:56 -05:00
Jason Lawrence
87c147c551 Workarounds for Android & Samsung clients 2020-03-29 14:14:48 -05:00
blacktwin
1bdba218b9 add arts methods to playlist.Playlist
Playlists currently do not have or expose any art
this is to be a place holder for the possible addition from Plex
2020-03-18 09:45:52 -04:00
blacktwin
3215856eb5 add arts methods to library.Collections 2020-03-18 09:44:24 -04:00
blacktwin
cd934c06f9 docstring minor update 2020-03-18 09:43:49 -04:00
blacktwin
91a08c63c4 add arts methods to base.PlexPartialObject 2020-03-18 09:42:56 -04:00
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
blacktwin
206fa231c7 update tidal to use batchingItems 2019-12-06 00:39:15 -05:00
blacktwin
fdc8c9ec93 update podcasts to use batchingItems 2019-12-06 00:39:00 -05:00
blacktwin
688f78a4ec update news to use batchingItems 2019-12-06 00:38:48 -05:00
blacktwin
320a99cc4d update webShows to use batchingItems 2019-12-06 00:38:31 -05:00
blacktwin
f849693646 update videoOnDemand to use batchingItems 2019-12-06 00:38:09 -05:00
blacktwin
0e69be702e remove Hub import 2019-12-06 00:37:31 -05:00
blacktwin
c9c1638a6a create batchingItems
taken from server.history method thanks @zSeriesGuy
2019-12-06 00:36:54 -05:00
blacktwin
9b84b0deae import library Hub class 2019-12-05 13:03:27 -05:00
blacktwin
fc28d7210f Adding Clip class for news 2019-12-05 13:02:50 -05:00
blacktwin
d6f7ad7e10 Adding music/tidal url and function 2019-12-05 13:02:22 -05:00
blacktwin
f7938cf06e Adding podcasts url and function 2019-12-05 13:00:29 -05:00
blacktwin
922845d7b6 Adding news url and function 2019-12-05 12:57:27 -05:00
blacktwin
bd2519b35b Adding webshows url and function 2019-12-05 12:55:39 -05:00
blacktwin
3caf0dab42 Adding videoOnDemand url and function 2019-12-05 12:54:18 -05:00
zSeriesGuy
b68ace19f4 Fix some typos 2019-12-04 14:15:51 -05:00
zSeriesGuy
8e64048e01 Add comments about why this is coded this way. 2019-12-04 14:14:29 -05:00
zSeriesGuy
c3f535d64a Update websocket-client 2019-12-04 13:53:30 -05:00
Steffen Fredriksen
2d1976d6c0
Merge pull request #396 from HimbeersaftLP/patch-1
Fix the documentation on originalTitle for Trackobjects
2019-11-28 23:16:36 +01:00
Steffen Fredriksen
2a6aaac1fe
Merge pull request #404 from zSeriesGuy/SpeedUpLibraryGet
Speed up Library Section Get
2019-11-28 23:15:54 +01:00
Steffen Fredriksen
0a7b3ed3b3
Merge pull request #403 from zSeriesGuy/PlayHistory
Support history for specific ratingKeys
2019-11-28 23:15:36 +01:00
Steffen Fredriksen
ba1f3a2b69
Merge pull request #400 from pkkid/photo_tags
photo_tags
2019-11-28 23:14:45 +01:00
Steffen Fredriksen
423b8a0dc4
Merge pull request #405 from pkkid/fix-playmedia
Fix for starting playback on Chrome and Plex for windows
2019-11-28 23:12:43 +01:00
Steffen Fredriksen
5f4b7e1dfd
Merge pull request #384 from blacktwin/patch-8
upload, select, remove subtitles
2019-11-28 23:12:28 +01:00
Hellowlol
8b7569b130 lets not give on the master toke if we dont need to. 2019-11-28 23:07:15 +01:00
Hellowlol
2c9402fd44 Fix goToMedia 2019-11-28 23:02:11 +01:00
Hellowlol
7f80f8ff7b Fix for starting playback on Chrome and Plex for windows 2019-11-28 21:58:31 +01:00
blacktwin
b59aab15b2 remove reloads in new functions. 2019-11-20 11:40:49 -05:00
zSeriesGuy
59ce923559 Add maxResults and mindate to all history methods 2019-11-20 06:50:25 -05:00
zSeriesGuy
442c55a03a Speed up Library Get
The original code pull a full list of all library items and then searched that list.
With this change, the library get uses the title as a search filter such that the returned list is much shorter.
2019-11-18 15:36:17 -05:00
zSeriesGuy
d9820775a6 Add additional histroy methods 2019-11-16 16:35:20 -05:00
zSeriesGuy
481e55bbe4 Update docstring for added ratingKey arg. 2019-11-14 17:28:46 -05:00
zSeriesGuy
43a60f00f1 Support history for specific ratingKeys
Add history method to PlexPartialObject
Add ratingKey to server history method.
Add tests for movie, show, season, episode, artist, album, and track history.
2019-11-14 12:21:49 -05:00
Michael Shepanski
f473b95396 New version.
New flake8 file.
Added package.json for scripts.
2019-11-11 20:18:53 -05:00
blacktwin
bd9e1db4dc
Merge branch 'master' into patch-8 2019-11-11 15:42:18 -05:00
blacktwin
3791708362 adding year to filters 2019-11-11 13:35:03 -05:00
blacktwin
6f37554e30 add tag attribute to photo object. 2019-11-11 09:33:56 -05:00
blacktwin
7b7fa7a2c9 add tag filter for photos 2019-11-11 09:33:17 -05:00
blacktwin
65bb149d7d add tag class for media 2019-11-11 09:32:55 -05:00
Michael Shepanski
4906c1cc68
Merge pull request #398 from jjlawren/skip_reload_for_session
Skip attr reload for 'session'
2019-11-10 10:38:14 -05:00
Jason Lawrence
f83bfd6cc2 Skip attr reload for 'session' 2019-11-09 21:35:33 -06:00
Steffen Fredriksen
4ea81af0ac
Merge pull request #390 from pkkid/posters
posters
2019-11-06 17:49:28 +01:00
blacktwin
be09f44ae3 Fix posters function based on PR comment 2019-11-06 09:28:56 -05:00
blacktwin
e62dff0a09 Correct Poster TAG 2019-11-06 09:28:19 -05:00
Himbeer
4b5a3e266c
Fix documentation for the Track object 2019-10-30 18:38:38 +01:00
Jason Lawrence
6d4ae35339 Workaround for Android TV client commands 2019-10-24 22:23:48 -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
Steffen Fredriksen
dbcc796b47
Merge pull request #387 from jjlawren/plexamp_workaround
Plexamp workaround for bad responses
2019-10-11 22:53:11 +02:00
Jason Lawrence
f4f635ab36 Review tweaks 2019-10-11 15:30:32 -05:00
blacktwin
8a2b8ad9c0 add _data attrib to Optimized and Conversion 2019-10-10 11:30:29 -04:00
blacktwin
45df6b57cf import new Conversion class and return active Conversions 2019-10-10 11:12:34 -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
8b3d9db9b2 find background processing list key 2019-10-09 22:11:06 -04:00
blacktwin
c857feb52c add _posters function and poster attribute to video class
docstring updated
2019-10-09 10:45:48 -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
a9f341169f import Conversion and create conversions function 2019-10-08 23:27:23 -04:00
blacktwin
63024025ce create Conversion object 2019-10-08 23:26:42 -04:00
Jason Lawrence
8f329f53d7 Simplify query calls, fix proxy bug 2019-10-08 16:06:45 -05:00
Jason Lawrence
23a5ad695b Simplify call 2019-10-08 15:31:37 -05:00
Jason Lawrence
6ef1e9c8f4 Check in sendCommand instead of query 2019-10-08 15:20:48 -05:00
Steffen Fredriksen
e6548649c8
Merge pull request #386 from pkkid/video_exists
add exists function
2019-10-06 21:19:31 +02:00
Jason Lawrence
6f789e31bb Plexamp workaround 2019-10-05 12:05:33 -05:00
blacktwin
64013a32fa
Merge branch 'master' into patch-8 2019-10-04 22:49:02 -04:00
blacktwin
d23b9a0a80 adding uploadSubtitles and removeSubtitles functions 2019-10-04 22:32:56 -04:00
blacktwin
4973c9dd1b Revert "add exists function"
This reverts commit db6a670
2019-10-03 22:11:30 -04:00
Michael Shepanski
17f67ebdad Fix conftext to pass flake8 2019-10-02 20:58:00 -04:00
blacktwin
8e7c5e9b67
update exists function
with updated media.py use new media attributes.
2019-09-30 21:03:49 -04:00
blacktwin
8c78fbacd8
add attributes
adding attributes for exists and accessible.
2019-09-30 20:53:50 -04:00
blacktwin
db6a670a4b
add exists function
instead of modifying media.py and base.py, create a function to check if the video exists, is accessible, and which file if multiples exist(ed). For #385
2019-09-30 11:43:57 -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
Hellowlol
810b469add lint myplex 2019-09-21 23:22:54 +02:00
Steffen Fredriksen
117d8cba73
Merge pull request #365 from blacktwin/patch-5
Adding Managed User support
2019-09-21 22:16:27 +02:00
Hellowlol
f95f7924b1 Merge branch 'pr/366' 2019-09-21 22:14:06 +02:00
Hellowlol
52833b1ebf Fix indent and a typo 2019-09-21 22:11:57 +02:00
blacktwin
df546046d8
doctstring update 2019-09-05 08:54:07 -04:00
Menushka Weeratunga
074a632304 Fix for episode not containing seasonNumber attribute 2019-09-01 23:35:05 -04:00
Hellowlol
77a223455e
fix 2019-08-22 14:25:38 +02:00
Hellowlol
5c9ee33175
Merge pull request #367 from makeroo/master
Do not fail while parsing illegal dates. Return None instead.
2019-08-17 01:31:04 +02:00
Ty Hahn
1d663b9209 Lint 2019-08-07 05:55:03 +09:00
Ty Hahn
37727a69ed Add rate function to video 2019-08-07 05:45:21 +09:00
blacktwin
830b9ed91f
fix for modeUpdate()
was checking the wrong variable.
corrected raise output.
2019-07-31 16:06:49 -04:00
Simone Pierazzini
3bc890a154 use preconfigured plexapi logger instead of plexapi.utils 2019-07-26 17:09:39 +02:00
Simone Pierazzini
94636d71f3 Log date parsing errors 2019-07-26 13:16:55 +02:00
Simone Pierazzini
25c619032f Do not fail while parsing illegal dates. Return None instead. 2019-07-26 12:11:00 +02:00
blacktwin
1587aa7bab
python3 compatibility for raise
python3 compatibility for raise
2019-07-25 15:23:51 -04:00
blacktwin
b201df061c
docstrings and better handling
added docstring and better handling of the parameters.
2019-07-25 15:20:27 -04:00
blacktwin
02026cc65b
Adding collection sorting
collectionSort to data and sortUpdate function.
2019-07-25 14:46:41 -04:00
blacktwin
9149d999e0
Add collectionMode data and modeUpdate
Added collectionMode to collection data. 
modUpdate acts like webUI, `collection.modeUpdate(mode="default")`
2019-07-25 14:30:48 -04:00
blacktwin
654f25b3f8
Add removeHomeUser
Add ability to remove a Home User. If Home User is an Existing Plex User then User will go back into Sharing/Friends with sections and settings carrying over. Any Home User settings (LiveTV) are removed.
2019-07-25 08:33:56 -04:00
blacktwin
a7df2a9ed8
adding createExistingUser
Add ability to create an Existing Plex User. If User already exists in Sharing/Friends, sections and settings carry over. If User does not already exist in Sharing/Friends, sections and settings can be assigned.
2019-07-25 08:25:32 -04:00
blacktwin
c719c90a7a
adding createHomeUser
add ability to create a Home User with sections and settings
2019-07-25 08:14:21 -04:00
blacktwin
baabcbceb1
update for ALLOWED_FILTERS
updated ALLOWED_FILTERS for Movies, Shows, and Photos sections.
2019-07-24 08:06:44 -04:00
blacktwin
d71ce739c0
update docstring
update docstrings for usage of `inviteFriend` and `updateFriend`. Previous doc suggested that if `None` then all sections were selected. If `None` no sections will be selected.
2019-07-22 15:37:37 -04:00
Nate Harris
fab1010066
Updated attributes documentation 2019-07-16 13:21:56 -04:00
Hellowlol
4c04b76690 Update server.py
add a way to get a transit token. Dunno about the name.
2019-06-29 22:16:55 +02:00
Michael Shepanski
a13d17c838 track accountID in Playable 2019-06-03 00:50:02 -04:00
Michael Shepanski
6ade28868c Add minimal api to list system accounts 2019-06-03 00:44:21 -04:00
Michael Shepanski
dd8648b9de Add container size to plex.history.
Add filter options to plex.history.
2019-06-02 23:12:07 -04:00
Michael Shepanski
e81809464f
Merge pull request #345 from Tomme/ignore_negative_epoch_values
Ignore negative epoch values
2019-05-29 12:50:38 -04:00
Peter Brink
4339626800 added collection to show object for tagging 2019-05-29 02:52:50 -04:00
Paulus Schoutsen
9498d1d751
Don't warn when also raising exception
We should not log warnings if we are also raising exceptions. It is up to the caller to decide how to handle the error and if they should notify the user. 

This was triggered because I got logs for bad requests for 401 Unauthorized.
2019-05-21 20:32:00 -07:00
Tomme
bcd81e67c0 Ignore negative epoch values 2019-03-24 19:31:30 +00:00
gstacks13
77b1ee721d Get season from index instead of creating title 2019-02-21 11:56:51 -06:00
Michael Shepanski
7f351f4a57
Merge pull request #319 from hidaba/patch-1
Update library.py
2019-02-11 09:17:14 -05: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
Andrey Yantsen
97e5383d54 fix few more flake8 warnings from recent PR 2019-02-07 11:09:07 +00:00
Andrey Yantsen
68868a6617 Merge remote-tracking branch 'root/master' into newer_oldest_plex 2019-02-07 11:06:43 +00:00
Andrey Yantsen
a28cbdc669 fix few more flake8 warnings 2019-02-07 10:25:50 +00:00
gstacks13
58862b74ba Fix Show.season(0) not returning 'Specials' 2019-02-07 02:24:00 -06: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
Michael Shepanski
6d135a7848
Remove unused import.
Flake8 caught this one.
2019-02-06 18:47:35 -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
Michael Shepanski
3f6eede667
Merge branch 'master' into patch-1 2019-02-04 14:48:06 -05:00
Michael Shepanski
b9d163ab2a
Missing space. 2019-02-04 14:46:47 -05:00
Michael Shepanski
accb09202b
Merge pull request #325 from tijder/master
Function updated section all with sort
2019-02-04 14:45:51 -05:00
Gabriel Stackhouse
d2c7feeaac Closes #334 - set default audio & subtitle stream 2019-02-04 13:45:49 -06:00
Michael Shepanski
99003a1f8a
Merge pull request #329 from hmnd/fix_original_spelling
Fix spelling of "original"
2019-02-04 14:44:46 -05:00
Gabriel Stackhouse
14fdc51b37 Add 'forced' var to subtitleStream 2019-02-04 13:15:05 -06:00
Hellowlol
d227437054
Update utils.py
add a proper fix for the issue, TODO make it more fault tolerant
2019-01-21 22:14:53 +01:00
Hellowlol
99a8037959
Update utils.py
Ooobs
2019-01-21 21:50:42 +01:00
Hellowlol
b7914dd0d8
Merge pull request #332 from pkkid/fix_276
fix datetime issue on windows.
2019-01-21 20:23:50 +01:00
Hellowlol
bd8949eeeb fix datetime issue on windows. 2019-01-19 23:23:42 +01:00
Hellowlol
22d1c2011c rstrip baseurl for plex servers, new users seems
add / to the end.
2019-01-19 23:05:12 +01:00
David Roizenman
3719d4b599 Fix spelling of "original" 2019-01-07 08:04:53 -05:00
tijder
abac9173f8
Function updated section all with sort 2018-12-21 20:51:39 +01:00
Hellowlol
15827022f3
Merge pull request #318 from jmlw/master
Allow MusicSection search by track.userRating and sort by userRating
2018-12-05 21:45:35 +01:00
Hellowlol
5553b87539 Update playlist.py
Docs stuff.
2018-12-04 22:00:58 +01:00
Hellowlol
b5027e8341 Merge branch 'smart' 2018-12-04 21:20:43 +01:00
Hellowlol
3f6a69e562 Merge branch 'pmp_406' 2018-12-04 21:19:46 +01:00
hidaba
73d1eec5ef
Update library.py
add 'year' to filter, it works
2018-11-26 12:28:14 +01:00
Hellowlol
e5df09ca6c fix settings for py 2 2018-11-17 20:42:03 +01:00
Hellowlol
d9c87d8423 inital pmp workaround. 2018-11-17 01:46:42 +01:00