Commit graph

177 commits

Author SHA1 Message Date
tdorsey
7c346f9917
chore(utils): fix typo 2020-07-18 08:45:41 -04:00
Hellowlol
d7c215b119 Small change to the repr and add test. 2020-06-14 20:21:46 +02:00
blacktwin
3852ed52a7 create millisecondToHuman method in utils 2020-06-13 22:12:01 -04:00
blacktwin
faeee7d667 import timedelta to utils 2020-06-13 22:11:39 -04:00
Hellowlol
940efc0013 first pass on compat. 2020-05-12 23:15:16 +02:00
Hellowlol
f6e311f056 2nd attempt to fix title bug 2020-05-11 23:12:15 +02:00
Hellowlol
8ac2edb3f6 reduce deps 2020-05-02 01:29:26 +03:00
Hellowlol
e0d5a873e1 misc fixes 2020-04-16 00:30:00 +02:00
blacktwin
2a198f5cb8 flake fix
missing return
2020-04-12 22:35:22 -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
8d334ce47f allow for casting str to bool 2020-03-16 11:03:39 -04:00
Hellowlol
77a223455e
fix 2019-08-22 14:25:38 +02: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
Tomme
bcd81e67c0 Ignore negative epoch values 2019-03-24 19:31:30 +00:00
Michael Shepanski
6d135a7848
Remove unused import.
Flake8 caught this one.
2019-02-06 18:47:35 -05: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
bd8949eeeb fix datetime issue on windows. 2019-01-19 23:23:42 +01:00
Andrey Yantsen
7a67417615 fix docs for Raises clauses 2018-10-03 11:09:43 +01:00
Andrey Yantsen
93ec86d746 add enable_fast_connect configuration parameter (#288) 2018-09-14 20:28:35 +02:00
Andrey Yantsen
68fc970d7a Improvements in tests process (#297)
* lets begin

* skip plexpass tests if there is not plexpass on account

* test new myplex attrubutes

* bootstrap: proper photos organisation

* fix rest of photos tests

* fix myplex new attributes test

* fix music bootstrap by setting agent to lastfm

* fix sync tests

* increase bootstrap timeout

* remove timeout from .travis.yml

* do not create playlist-style photoalbums in plex-bootstraptest.py

* allow negative filtering in LibrarySection.search()

* fix sync tests once again

* use sendCrashReports in test_settings

* fix test_settings

* fix test_video

* do not accept eula in bootstrap

* fix PlexServer.isLatest()

* add test against old version of PlexServer

* fix MyPlexAccount.OutOut

* add flag for one-time testing in Travis

* fix test_library onDeck tests

* fix more tests

* use tqdm in plex-bootstraptest for media scanning progress

* create sections one-by-one

* update docs on AlertListener for timeline entries

* fix plex-bootstraptest for server version 1.3.2

* display skip/xpass/xfail reasons

* fix tests on 1.3

* wait for music to be fully processed in plex-bootstraptest

* fix misplaced TEST_ACCOUNT_ONCE

* fix test_myplex_users, not sure if in proper-way

* add pytest-rerunfailures; mark test_myplex_optout as flaky

* fix comment

* Revert "add pytest-rerunfailures; mark test_myplex_optout as flaky"

This reverts commit 580e4c95a7.

* restart plex container on failure

* add conftest.wait_until() and used where some retries are required

* add more wait_until() usage in test_sync

* fix managed user search

* fix updating managed users in myplex

* allow to add new servers to existent users

* add new server to a shared user while bootstrapping

* add some docs on testing process

* perform few attemps when unable to get the claim token

* unlock websocket-client in requirements_dev

* fix docblock in tools/plex-teardowntest

* do not hardcode mediapart size in test_video

* remove cache:pip from travis

* Revert "unlock websocket-client in requirements_dev"

This reverts commit 0d536bd06d.

* remove debug from server.py

* improve webhook tests

* fix type() check to isinstance()

* remove excessive `else` branch due to Hellowlol advice

* add `unknown` as allowed `myPlexMappingState` in test_server
2018-09-14 20:03:23 +02:00
Nicholas Totsch
981e965e1f Added class/libtype for collections and library search function 2018-04-10 12:14:57 -05:00
Michael Shepanski
61ede66ad5 Dont include token in URLs unless show_secrets set in config; All functions that return a URL such as stream urls and thumbnails still include token 2018-01-04 21:44:35 -05:00
Hellowlol
e137f610aa too long. 2017-10-26 19:51:46 +02:00
Hellowlol
f0b869419c Ignore bars was that is only used by the plexapi cli tool 2017-10-26 00:24:54 +02:00
Hellowlol
168d94e67a Ignore download session images, isnt use my plexpai
it was a example for a users.
2017-10-26 00:23:24 +02:00
Hellowlol
26bf4ca010 zomg... 2017-10-26 00:01:42 +02:00
Hellowlol
2d1e4f02fb Lint cov. 2017-10-25 18:34:59 +02:00
Hellowlol
c9d1e222a6 Merge branch 'master' into better_cli 2017-10-01 00:46:55 +02:00
Hellowlol
7752e983b6 f 2017-10-01 00:34:20 +02:00
Hellowlol
ceada3c0b3 Fix suggestion bug... 2017-09-30 01:32:27 +02:00
Hellowlol
566107697a download improvements
- Add missing showstatus doc
- add name and total to tqdm so the bar is displayed properly
2017-09-29 23:55:41 +02:00
Hellowlol
f974ce5ad2 More cli work,
# todo movei this to cli inside plexapi and add a entrypoint to setup.py
2017-09-26 21:58:56 +02:00
Hellowlol
4f56b1ad6c init 2017-09-26 20:11:19 +02:00
Hellowlol
626c63be3b lint my ass... 2017-08-18 23:23:40 +02:00
Michael Shepanski
d7276e2e82 Add tqdm requirement; Display download status in plex-download 2017-08-14 23:40:28 -04:00
Michael Shepanski
7de4cbc572 Make flake8 happy 2017-08-13 01:58:08 -04:00
Michael Shepanski
63dc1507d2 Add plex-download.py tool; Added new utility to request user/pass from user, config, or env for use when creating cmd line tools 2017-08-13 01:50:40 -04:00
Michael Shepanski
0aba49c90c MOve python3 check to compat 2017-07-30 01:02:10 -04:00
Michael Shepanski
15c0deaa18 Merge pull request #153 from pkkid/unicodeerr
Attempt to fix https://github.com/pkkid/python-plexapi/issues/147
2017-07-30 00:56:10 -04:00
Hellowlol
145f49808b fix so we can remove by value
TODO make sure tests works
2017-07-18 23:55:11 +02:00
Hellowlol
31daf2a435 Attempt to fix https://github.com/pkkid/python-plexapi/issues/147 2017-07-18 01:14:16 +02:00
Hellowlol
9c82a516b5 some flake. 2017-07-16 23:04:46 +02:00
Hellowlol
d2dac4b017 Init edit. 2017-07-16 22:46:03 +02:00
Michael Shepanski
624afd7082 Move share into MyPlexAccount.inviteFriend; Add abilities inviteFriend, updateFriend, RemoveFriend 2017-05-26 22:35:33 -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
612f1db0d2 Remove unused import 2017-02-27 00:50:48 -05:00
Michael Shepanski
43444459e3 Tighten up download code a bit; downloadLogs and DownloadDatabases were reversed (oops) 2017-02-26 23:59:46 -05:00
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
Hellowlol
baeedcebbf add download log/db. 2017-02-26 21:01:54 +01:00
Michael Shepanski
91a8ab4563 Checkpoint: Settings functionality works; Needs documentation 2017-02-23 01:33:30 -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
049ef1235b Keep import style same as other files. 2017-02-19 22:53:26 -05: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
12406082ec Choose Closest Thumbnail for Audio Tracks #102 2017-02-15 00:13:22 -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
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
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
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
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
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
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
cec0ab07e8 Cleanup formatting 2017-02-01 22:53:05 -05: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
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
Michael Shepanski
04251d3805 Finish documenting Photo; Monkey-patch sphinx to not auto-link to unknown types; Remove links to ElementTree (not our code) 2017-01-30 23:44:03 -05:00
Michael Shepanski
e873d857c9 Only replace on string_types 2017-01-26 01:44:55 -05:00
Michael Shepanski
d357b3e628 Hide secrets (X-PLEX-TOKEN) in logging by default; Set the config value logging.show_secrets = true in your config file to re-enable this 2017-01-26 01:33:01 -05:00
Michael Shepanski
355f4686c9 Finish documenting utils.py 2017-01-26 00:25:13 -05:00
Michael Shepanski
b61d1888b4 Finished documenting library.py 2017-01-25 23:21:13 -05:00
Michael Shepanski
c684552792 Started work on better documentation 2017-01-21 23:06:55 -05:00
Hellowlol
1abb1456f8 Inital hub. 2017-01-04 00:00:28 +01:00
Hellowlol
9826cc1a4b Merge pull request #87 from WyseNynja/master
cast viewCount to int
2017-01-02 22:31:16 +01:00
Hellowlol
1075f65bb4 Moredocs (#84)
* Docs and speedups.
2017-01-02 22:06:40 +01:00
Bryan Stitt
b864cd3b45 case viewCount to int 2016-12-31 15:16:31 -08:00
Hellowlol
740e7a5b9b f 2016-12-17 00:38:08 +01:00
Hellowlol
8d05808236 f 2016-12-16 01:22:18 +01:00
Hellowlol
21f376051c s 2016-12-16 01:17:02 +01:00
Michael Shepanski
e5fc43a85f Fix thing I broke 2016-04-12 23:26:04 -04:00
Michael Shepanski
c75db1df10 Fix broken utils.searchType() 2016-04-12 22:55:45 -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