Commit graph

294 commits

Author SHA1 Message Date
Michael Shepanski
55a38bead7 Fix string type 2017-02-26 21:42:01 -05:00
Michael Shepanski
aee9290c29 Update utils.py 2017-02-26 21:14:15 -05:00
Michael Shepanski
14f70620ab Update media.py 2017-02-26 21:12:56 -05:00
Michael Shepanski
5e2805d240 Update base.py 2017-02-26 21:11:41 -05:00
Michael Shepanski
ec4d0d591d Update base.py 2017-02-26 21:10:28 -05:00
Michael Shepanski
ccd3302f99 Update alert.py 2017-02-26 21:09:29 -05:00
Hellowlol
a4abc0e223 fixup 2017-02-27 01:35:22 +01:00
Hellowlol
351fe3565d add websocket to requirements.txt
We just just install all the packages we need
2017-02-27 00:17:03 +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
Hellowlol
baeedcebbf add download log/db. 2017-02-26 21:01:54 +01:00
Michael Shepanski
d41bf0fb89 Add support to recursivly navigate photoalbums 2017-02-26 00:17:41 -05:00
Michael Shepanski
cbb999a0f5 Make flake8 happy 2017-02-25 10:50:54 -05:00
Michael Shepanski
4c83961cb4 Ability to delete device 2017-02-25 02:37:30 -05:00
Michael Shepanski
32a69db63e Support webhooks 2017-02-25 01:56:12 -05:00
Michael Shepanski
0b3ccc4c02 Add back noqa statments 2017-02-25 00:46:24 -05:00
Michael Shepanski
e66cc0a9c0 I was never happy with notifier being the name of the event listener. AlertListener is more boring, but also more clear what its doing. 2017-02-24 23:50:58 -05:00
Michael Shepanski
b35b265776 Better formatting for list settings 2017-02-24 23:14:52 -05:00
Michael Shepanski
07b3abc4c8 Document Settings; Cleanup style a bit 2017-02-24 11:18:54 -05:00
Michael Shepanski
8bb80a4222 Make flake8 happy 2017-02-23 02:08:04 -05:00
Michael Shepanski
a9416c0708 plex.settings.__getattr__ should return the value (not the object) 2017-02-23 01:55:22 -05:00
Michael Shepanski
91a8ab4563 Checkpoint: Settings functionality works; Needs documentation 2017-02-23 01:33:30 -05:00
Michael Shepanski
08f1e4b83d Fix pulling server baseurl,token from config; Add option to auto connect to client from config options 2017-02-22 01:22:10 -05:00
Michael Shepanski
cd1a05d770 Make flake8 happy 2017-02-20 00:37:00 -05:00
Michael Shepanski
4b35b03d8a Function name in camelCase ot match rest of code 2017-02-19 23:04:27 -05:00
Michael Shepanski
e48a66e00c Merge pull request #122 from Hellowlol/add_indexes
Add indexes. Closes https://github.com/pkkid/python-plexapi/issues/121
2017-02-19 22:57:06 -05:00
Michael Shepanski
049ef1235b Keep import style same as other files. 2017-02-19 22:53:26 -05:00
Michael Shepanski
228f049190 Pluralize function name; Its more clear more than one thing is being deleted 2017-02-19 22:51:17 -05:00
Michael Shepanski
601471c304 Merge branch '3.0.0' into pkkid/opt 2017-02-19 22:36:53 -05:00
Michael Shepanski
4b1a564409 All config options can be set with environment variables; Update all os.environ calls to use CONFIG.get; Finish documenting configuration options. 2017-02-19 22:18:23 -05:00
Hellowlol
73109d0e9e add deleteMediaPreview 2017-02-18 22:12:43 +01:00
Hellowlol
7d5aca805f fixup if indexes is saved as something else. 2017-02-18 21:56:40 +01:00
Hellowlol
c7c04d2a42 Add indexes. Closes https://github.com/pkkid/python-plexapi/issues/121 2017-02-18 01:51:06 +01:00
Michael Shepanski
a42bca2a6a Convert clean value to str 2017-02-15 00:43:48 -05:00
Michael Shepanski
e93829f881 Allow passing a playqueue to client.playMedia(); Default all mtype arguments to video. 2017-02-15 00:37:02 -05:00
Michael Shepanski
12406082ec Choose Closest Thumbnail for Audio Tracks #102 2017-02-15 00:13:22 -05:00
Michael Shepanski
85ea65b8a4 Cleanup doc strings 2017-02-14 23:29:22 -05:00
Michael Shepanski
6b933c3aaa Merge pull request #119 from Hellowlol/plq
add support to shuffle to createplayqueue and playlist.playqueue
2017-02-14 23:27:23 -05:00
Michael Shepanski
db9c8f42f7 Cleanup docstrings 2017-02-14 23:22:57 -05:00
Michael Shepanski
e74c79d344 Merge branch '3.0.0' into fixds 2017-02-14 23:16:58 -05:00
Hellowlol
9dc7c30e5f refresh now correctly redownload all metadata from the interwebz
update scans the library for new media files.
2017-02-14 23:36:21 +01:00
Hellowlol
5e18776ee2 add support to shuffle to createplayqueue and playlist.playqueue
See the tests for examples.
2017-02-14 22:12:56 +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
b36a6776a5 Add build documentation test 2017-02-13 17:44:28 -05:00
Michael Shepanski
eb69d8faed Try building docs again 2017-02-13 15:00:53 -05:00
Michael Shepanski
fc1c10e554 Finish documenting video 2017-02-13 14:38:40 -05:00
Michael Shepanski
1815e67804 Remove unneeded util functions 2017-02-13 01:48:04 -05:00
Michael Shepanski
c0958a0edc only auto-connect to clients is baseurl and token passed 2017-02-13 01:37:23 -05:00
Michael Shepanski
44677e59a6 Merge dev 2017-02-12 22:38:56 -05:00
Michael Shepanski
9052cf7be2 Remove findLocations util function; All locations plural; Fix tests 2017-02-12 22:33:38 -05:00
Michael Shepanski
4b8f82291b Remove findLocations util function 2017-02-12 22:15:47 -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
a692fbcd6f Merge branch '3.0.0' into add_delete 2017-02-11 11:46:49 -05:00
Hellowlol
54faa30d2d fix my fix of my bug... comment out server updatedat. 2017-02-11 11:09:35 +01:00
Hellowlol
ba9e7c6fe4 fix my bug. 2017-02-11 10:58:20 +01:00
Michael Shepanski
3783f3c61b Add missing requirement for dev. Document that you need websocket-client installed in order to use PlexNotifier 2017-02-10 23:26:09 -05:00
Michael Shepanski
6b1ae844c5 Add PlexNotifier class; Ability to monitor plex notifications (current scan progress, transcode session updates, etc) 2017-02-10 23:08:36 -05:00
Hellowlol
b37e7fefeb Fix test_video.py::test_video_Show_section
remove untrue comment
2017-02-11 00:32:51 +01:00
Hellowlol
b995deab05 forgot a pragma 2017-02-11 00:16:34 +01:00
Hellowlol
6be7fa8a29 Add delete
Supports media elements and librarys
2017-02-11 00:16:23 +01:00
Michael Shepanski
454a858b7d Remove dev logging 2017-02-09 16:45:15 -05:00
Michael Shepanski
ebf18ba020 Update fetchItem to search all subitems as well 2017-02-09 16:29:23 -05:00
Michael Shepanski
08e61960e7 Move common methods to PlexPartialObject; More documentation 2017-02-09 15:01:23 -05:00
Michael Shepanski
8304842daa Fix typos 2017-02-09 01:59:14 -05:00
Michael Shepanski
6fa7c12c48 Implement fetchItem filters; All tests passing? 2017-02-09 01:54:38 -05:00
Michael Shepanski
5443711b90 Make _query and _url public methods since we use it as such 2017-02-08 23:29:17 -05:00
Michael Shepanski
83a8c5733e Rename _root back to _server but keep it private 2017-02-08 23:13:54 -05:00
Michael Shepanski
76c0cb55a1 Rename variable to kwargs 2017-02-08 23:08:25 -05:00
Michael Shepanski
f676d4cbbf Most tests passing; Need to add better filters on fetchItems for watched / unwatched 2017-02-08 02:00:43 -05:00
Michael Shepanski
e3abfeeb0f Audio tests passing 2017-02-08 00:36:22 -05:00
Michael Shepanski
82bd1753e2 Changes from code review 2017-02-07 23:26:58 -05:00
Michael Shepanski
745feabff9 Fix to use _fetchItem instead of _findItem 2017-02-07 02:21:12 -05:00
Michael Shepanski
bc421490db myplex tests passing 2017-02-07 01:58:29 -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
fc28f7c1e6 Move Playable and PlexPartialObject to new plexapi.base module 2017-02-04 14:46:51 -05:00
Michael Shepanski
cf99256450 Fix tests 2017-02-04 14:18:10 -05:00
Michael Shepanski
7c766337b6 Remove all references to NA 2017-02-04 12:43:50 -05:00
Michael Shepanski
065a753d77 Merge branch 'master' of github.com:mjs7231/python-plexapi 2017-02-04 03:09:04 -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
a2cdc97453 Fix tests; comment out a few that were breaking because of timezone aware datetimes; Perhaps converting datetimes to timestamps then comparing the int values will be more reliable. 2017-02-03 11:39:46 -05:00
Michael Shepanski
19d25537a8 Revert hubsearch merge changes to cast() function 2017-02-03 10:25:11 -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
0e7a158836 Cleanup HubSearch code a bit (contribution is awesome); Add a whole bunch of new attributes to server.Server object; Finish documenting server.py 2017-02-03 01:29:19 -05:00
Michael Shepanski
f479b8453b Merge branch 'master' into hub 2017-02-02 22:23:46 -05:00
Michael Shepanski
2a680a18d5 Rollback last pull request 2017-02-02 09:09:34 -05:00
Michael Shepanski
a32f447d13 Merge pull request #94 from mjs7231/Hellowlol-patch-1
fixup after ratingkey was changed to int.
2017-02-02 01:48:38 -05:00
Michael Shepanski
16a55316f1 Bug #74 - getting error on clients 2017-02-02 01:42:12 -05:00
Michael Shepanski
0aac1156a1 Add offset as optional playMedia() argument; Document it; Clenaup old tests as its the only way to test client actions right now 2017-02-02 01:32:38 -05:00
Michael Shepanski
b5e29fdb28 Add ability to put username, password, baseurl, token into config.ini (make sure you set proper permission on that file); Fix first example in README 2017-02-02 00:49:12 -05:00
Michael Shepanski
cec0ab07e8 Cleanup formatting 2017-02-01 22:53:05 -05:00
Hellowlol
e2efc5f3f2 remove backup files, add .orgin to gitignore
- delete .travis....
2017-02-01 22:41:41 +01:00
Hellowlol
d19d602455 revert NA to _NA so its still compat with the tests.
- this allows for casting str and check for __NA__ in addition to is
instance.
- some indentation fixes
2017-02-01 22:32:00 +01:00
Hellowlol
e06f6250a3 mroe cov 2017-02-01 20:55:08 +01:00
Hellowlol
bbcefe2d53 add client base. 2017-02-01 20:49:13 +01:00
Hellowlol
5562108472 remove 2017-02-01 20:49:12 +01:00
Hellowlol
a72dd6256a more cov 2017-02-01 20:49:11 +01:00
Hellowlol
19506e272d more cov 2017-02-01 20:46:53 +01:00
Hellowlol
5ddf9a0ace oh loard 2017-02-01 20:45:54 +01:00