Commit graph

255 commits

Author SHA1 Message Date
Michael Shepanski
be2142f7ed Better logging when connecting to resources; Ability to specify timeout when connecting to resources; Update connect_to_resource test to be a bit more generic 2017-04-23 22:59:22 -04:00
Michael Shepanski
379b8ff63b Tests now pass for both test servers 2017-04-23 01:54:53 -04:00
Michael Shepanski
7ec909dce6 Finish generic tests; a few things to polish before merge 2017-04-23 01:18:53 -04:00
Michael Shepanski
2513eb0b6d Update test_utils 2017-04-17 23:32:08 -04:00
Michael Shepanski
29daf4c237 Update test_server 2017-04-16 23:33:33 -04:00
Michael Shepanski
5278d583bc Update test_playlist 2017-04-16 11:58:21 -04:00
Michael Shepanski
7bb39aa05c UPdating tests to work on second install 2017-04-14 20:47:59 -04:00
Michael Shepanski
fbbd3f0082 Merge pull request #139 from Hellowlol/lib_work
Lib work
2017-03-21 22:47:00 -04:00
Michael Shepanski
1dcbf85a9f Changes to myplex.py from code review; Update test_documentation to check for warnings and errors 2017-02-27 23:43:31 -05:00
Hellowlol
db3b729360 one step closer with the test. 2017-02-27 23:16:02 +01:00
Michael Shepanski
e87a7346c6 Fix test 2017-02-27 00:36:20 -05: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
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
1bf09cb863 Convert README to rst to allow import into docs 2017-02-20 14:50:02 -05:00
Michael Shepanski
50af39c6f3 Test README examples 2017-02-20 02:10:45 -05:00
Michael Shepanski
1b549878ee Add missing imports 2017-02-19 23:21:37 -05:00
Michael Shepanski
a546db6fe7 Function name in camelCase ot match rest of code 2017-02-19 23:05:33 -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
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
0c0cefa27f tempfix test_build_documentation to the test can run on windows. 2017-02-19 00:57:07 +01:00
Hellowlol
558c6a0f41 Add tests for library and section deleteMediaPreview 2017-02-18 22:15:49 +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
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
e74c79d344 Merge branch '3.0.0' into fixds 2017-02-14 23:16:58 -05:00
Michael Shepanski
8c51fc6b77 Merge master 2017-02-14 23:07:41 -05:00
Michael Shepanski
5cac2e6872 Remoce .date() 2017-02-14 22:55:55 -05:00
Michael Shepanski
fdb7332695 Make all dates ranges 2017-02-14 22:49:14 -05:00
Michael Shepanski
eeba6dfad2 Merge master 2017-02-14 22:43:22 -05:00
Michael Shepanski
f013c2f21c This test is the bane of my existence. 2017-02-14 22:41:22 -05:00
Michael Shepanski
ce659f4dca Earlier date 2017-02-14 22:34:42 -05:00
Michael Shepanski
0d8069b855 One of these days the test will pass 2017-02-14 22:14:25 -05:00
Michael Shepanski
0227f09fbd Be less strict 2017-02-14 21:57:09 -05:00
Michael Shepanski
5c827efcd6 Artwork changed? 2017-02-14 21:48:43 -05:00
Michael Shepanski
ed3fa70a6f Comment out broken test 2017-02-14 21:36:59 -05:00
Hellowlol
ff1e6036e9 fixtest 2017-02-15 01:07:19 +01: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
b77237e5ed Fix excpetion caught 2017-02-14 00:35:13 -05:00
Michael Shepanski
b36a6776a5 Add build documentation test 2017-02-13 17:44:28 -05:00
Michael Shepanski
1815e67804 Remove unneeded util functions 2017-02-13 01:48:04 -05:00
Michael Shepanski
7824f762f0 Fix download test 2017-02-12 22:49:29 -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
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
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
6be7fa8a29 Add delete
Supports media elements and librarys
2017-02-11 00:16:23 +01: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
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
fcc1248a9b Fix private variable names in tests 2017-02-07 02:14:49 -05:00
Michael Shepanski
c072347593 MyPlex tests working (missed checkin) 2017-02-07 02:02:01 -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
cf99256450 Fix tests 2017-02-04 14:18:10 -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
622c2490a0 Clean formatting 2017-02-01 23:47:22 -05:00
Michael Shepanski
b648933963 Fix modified state in test 2017-02-01 23:23:46 -05:00
Michael Shepanski
d90e1a74ac Move archived tests; PyTest was picking them up in the other location 2017-02-01 23:18:32 -05:00
Michael Shepanski
45857f9fb7 Move pytests up to main tests folder; Move old tests to archived folder 2017-02-01 23:10:12 -05:00
Hellowlol
8d8eeb4faa ffs 2017-02-01 20:55:08 +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
37f3a0588e fake it. 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
7e9bd51d55 testing testing, 1, 2, 3. 2017-02-01 20:41:20 +01:00
Hellowlol
7367e531a2 f 2017-02-01 20:21:14 +01:00
Michael Shepanski
807a29bbf2 Use the correct env variables 2017-01-24 01:04:12 -05:00
Michael Shepanski
48d97adea5 Log username 2017-01-24 01:01:45 -05:00
Michael Shepanski
c29915dd2a Grab login creds from environment 2017-01-24 00:58:35 -05:00
Michael Shepanski
35ea5ae18a Much cleaner test layout; Move test config to config.ini 2017-01-08 23:40:39 -05:00
Michael Shepanski
06918c7ae0 Another photo test 2016-07-07 23:31:49 -04:00
Michael Shepanski
00f1b6c6ba Working photo playlist test 2016-07-07 23:10:41 -04:00
Michael Shepanski
98671d7e79 Add missing section() function to Photo object; Work on showing photos on client (not working yet) 2016-07-07 22:41:11 -04:00
Michael Shepanski
5701af7ed4 Ability to play playlists 2016-04-13 22:36:12 -04:00
Michael Shepanski
ba9eab0229 Minor bugfixes 2016-04-12 23:52:47 -04:00
Michael Shepanski
e5fc43a85f Fix thing I broke 2016-04-12 23:26:04 -04:00
Michael Shepanski
1a679411dc Ability to list all albums; Fix setting object values when not found (NA) and we know its the full object 2016-04-12 22:47:46 -04:00
Michael Shepanski
748fc68406 Cleanup playlist support; Fix UUID on URLs; Better method to store listTypes; Cache section IDs in library 2016-04-11 22:43:21 -04:00
Michael Shepanski
3138ad1087 Added playlist support 2016-04-10 23:49:23 -04:00
Michael Shepanski
09a7ae80db Basic support for photos complete 2016-04-09 23:59:47 -04:00
Michael Shepanski
81e22147c0 Get examples working again; Add new examples most_streamed_titles and most_active_users 2016-04-07 22:48:45 -04:00
Michael Shepanski
80529a21c7 Rename MyPlexUser to MyPlexAccount; Add support for real MyPlexUsers; Add api for history; New tests for sessions() and history() 2016-04-07 01:39:04 -04:00
Michael Shepanski
610bf16ce3 Client control via proxy working; Re-enable control via proxy tests 2016-04-05 23:32:49 -04:00
Michael Shepanski
e81f2506e9 Move _find function from PlexPartialObject to generic utility functions 2016-04-03 23:17:29 -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
7bb700d395 New test for client.timeline(); Fix bug in missing proper headers for timeline 2016-03-31 23:39:09 -04:00
Michael Shepanski
d63339bd24 Cleanup search a bit; Get existing tests passing and add a few new search tests 2016-03-31 18:36:54 -04:00
Michael Shepanski
b10faf8560 Checkpoint: New implementation for search 2016-03-31 16:52:48 -04:00
Michael Shepanski
03469a7f55 Cleanup playback commands; Remove proxy tests, it needs a bit more expirimentation 2016-03-24 22:36:25 -04:00
Michael Shepanski
b277facf10 Revisit client code; Add more testing around clients; Still cant get playback working through server proxy, but it works directly 2016-03-24 02:20:08 -04:00
Michael Shepanski
bcf01fdcdf Move getStreamURL to PlexPartialObject; Remove duplicated code; Add getStreamURL tests (doesnt actualy test the stream works tho) 2016-03-22 23:38:06 -04:00
Michael Shepanski
a999df8e94 Audio support complete; Added more audio tests; renamed is_watched to isWatched 2016-03-21 23:12:12 -04:00
Michael Shepanski
d4e8bdba70 Checkpoint: Adding Audio support; Cleanup attribute definitions to only include what the Plex objects actually include. 2016-03-21 00:26:02 -04:00
Michael Shepanski
276ba26b77 Create registry of library items we may see in xml; Cleanup how we handle build_item and list_items 2016-03-17 00:51:20 -04:00
Michael Shepanski
fd83cbab8a Cleanup Audio/Video search at the server & library level. Start testing audio a bit more 2016-03-15 14:36:59 -04:00
Michael Shepanski
830f96cf28 Add tagging to tests to more easily run tests for a specific category 2016-03-15 11:04:53 -04:00