Commit graph

49 commits

Author SHA1 Message Date
JonnyWong16
eb1d724417
Add Tautulli to X-Plex-Device-Name header 2022-03-16 16:59:58 -07:00
JonnyWong16
e34e775f41
Set different client ID when fetching a new Plex token 2021-10-11 21:24:58 -07:00
JonnyWong16
02986e946f
Fix exception handling in http_handler 2021-03-05 19:41:59 -08:00
JonnyWong16
775616b52d
Add option to return response from http_handler 2021-02-27 13:10:11 -08:00
JonnyWong16
e705bedc91
Clean up http_handler using requests
* Restore ThreadPool for multiple requests
* Use a requests.Session()
* Update requests.exceptions
2020-12-15 22:38:43 -08:00
Philip Poten
6d0831ceaa replace urllib3 with requests, remove unused session logic 2020-12-12 16:03:18 +01:00
JonnyWong16
e2c2f66e97
Update Plex.tv signin to /api/v2 2020-05-09 16:19:12 -07:00
JonnyWong16
9e0153e962
Set PYTHON2 global variable 2020-04-04 07:57:51 -07:00
JonnyWong16
cc05552685 Remove from __future__ import absolute_import 2020-03-24 20:17:44 -07:00
JonnyWong16
82c09570c4 Update all future imports for Python 2 2020-03-23 22:11:42 -07:00
JonnyWong16
ed07bd374c Fix http_handler for Python 2 2020-03-23 22:11:41 -07:00
JonnyWong16
078685a2a3 Fix imports for Python 2 2020-03-23 22:11:41 -07:00
JonnyWong16
05afa0859c Run futurize --unicode-literals 2019-11-23 19:21:10 -08:00
JonnyWong16
ab6196589b Run futurize --stage1 2019-11-23 19:11:42 -08:00
JonnyWong16
c279057f91 Remove unicode strings 2019-11-23 14:37:26 -08:00
JonnyWong16
3446f5543d Check local server directly 2018-07-10 08:12:12 -07:00
JonnyWong16
2711597ffb Pass OAuth client headers to server 2018-07-02 11:20:25 -07:00
JonnyWong16
3fd0708d21 Use client headers for OAuth 2018-07-02 09:55:28 -07:00
JonnyWong16
c18ee81130 Fix typo in http handler 2018-06-03 12:25:15 -07:00
JonnyWong16
6d365c174a Update X-Plex headers 2018-05-30 21:39:45 -07:00
JonnyWong16
26b2342956 Fix typo 2018-05-10 12:04:52 -07:00
JonnyWong16
7c76b0678a Log platform info on startup 2018-05-10 08:47:54 -07:00
JonnyWong16
754fd24421 Refactor some code 2018-02-24 10:09:02 -08:00
JonnyWong16
2621da7d36 Add server selection dropdown to settings 2018-02-13 19:22:11 -08:00
JonnyWong16
e1dca1509a Reconnect Plex Cloud without keeping the server awake 2018-02-13 10:49:11 -08:00
JonnyWong16
c287b6df77 Fix DepreciationWarning error for URIs with query string parameters 2018-02-12 08:15:21 -08:00
JonnyWong16
12c9aa3d6a Try caching metadata for sessions 2018-01-03 13:36:26 -08:00
JonnyWong16
b84888356f Don't decode http response content 2017-12-31 22:13:39 -08:00
JonnyWong16
6c6493fe31 Import urllib3 directly 2017-12-31 18:56:08 -08:00
JonnyWong16
4ad644ab7f Update http handler for new requests and certifi 2017-12-31 18:56:08 -08:00
JonnyWong16
52eac2b437 Import certifi from requests 2017-12-31 18:56:08 -08:00
JonnyWong16
15faccfa2f Update server connection code 2017-12-30 17:27:39 -08:00
JonnyWong16
19f029cff0 Rename PlexPy to Tautulli 2017-12-16 12:52:33 -08:00
JonnyWong16
cb8a5504f6 Cleanup unused modules and imports
* Ran code through PyFlakes
2016-05-15 11:32:11 -07:00
JonnyWong16
c14053a199 Send PMS token in header instead of in uri 2016-05-11 22:01:11 -07:00
JonnyWong16
83b97111a0 Add PMS http request timeout an advanced setting in config file 2016-05-09 18:28:39 -07:00
JonnyWong16
f4e719749a Cleanup all imports
* Should fix problems with needing to do inline imports
2016-05-07 11:26:00 -07:00
JonnyWong16
3abea4ad3c Enable guest login with Plex.tv account 2016-05-01 11:06:37 -07:00
Hellowlol
2fcd55eb60 API2 2016-02-10 22:09:41 +01:00
JonnyWong16
c17bf79d79 Fix server verification for unpublished servers 2016-01-31 11:32:44 -08:00
JonnyWong16
4a5e38dc1e Fix error refreshing library counts when XML fails
* Also increase http request timeout to 20 seconds
2016-01-18 19:27:58 -08:00
Hellowlol
b1e27d9bc2 If we fail to parse a response, log the uri
and the original response
2015-10-02 20:34:47 +02:00
Tim
6e2fa9a3b4 Fix plexWatch db importer.
Always return None on exception in http handler.
Increase websocket retry counts.
2015-09-27 20:48:10 +02:00
Tim
0877a6bf21 Add per-user history logging toggle. Uncheck to disable history logging for specific user.
On SSL cert bypass check that the method is available before allowing.
2015-08-13 23:05:09 +02:00
Tim
d345893529 Allow SSL cert verify override on Plex.tv requests. 2015-08-12 23:18:37 +02:00
Tim
30c20b3061 Fix issue with server verification when working remotely. 2015-07-17 17:29:14 +02:00
Tim
637339ea62 Fix SSL communication issues.
Add remote server switch in config.
Add compulsory server verification in settings.
Store the machine_id in settings for quick retrieval.
Add setup complete screen on setup wizard and increase delay.
Refresh server URL params on startup and set up 12 hourly refresh schedule.
Use outer join on history tables.
Add extra exception in http_handler to catch http requests trying to communicate with https-only server.
2015-07-17 16:48:47 +02:00
Tim
857e9e9d1c Fix some exception handling. 2015-07-07 21:24:47 +02:00
Tim
9b7f529d02 Create new class to handle HTTP requests
Some more clean-up
2015-07-05 15:59:57 +02:00