Commit Graph

19 Commits

Author SHA1 Message Date
Odd Stråbø 7763762212 Tool black: auto-format Python code 2024-06-10 09:19:47 +00:00
Odd Stråbø 53c887d354 Use module-relative imports 2021-10-12 18:08:47 +02:00
Matt 405a0038a3 Stop throwing errors during playback reporting 2021-05-11 19:55:08 -04:00
Odd Stråbø 146bd401bf HTTP 400: Log response body when it can't be decoded as json 2020-11-26 16:58:14 +01:00
Odd Stråbø 6c3b682ef0 Log HTTP 400 json payloads 2020-11-26 16:58:14 +01:00
Odd Stråbø ed96dc8ad5 Clean json returned from server for keys with None values
Add testing
2020-08-21 15:09:34 +02:00
Odd Stråbø 8a3ca73d52 flake8 2020-08-21 14:56:15 +02:00
Odd Stråbø 803081f65a Remove some generic exceptions 2020-08-01 00:08:03 +02:00
Matt 0f1f8be5ce Use utf-8 for header encoding 2020-05-23 10:11:37 -04:00
Matt 5cbc798cad Allow the device name to have unicode characters 2020-05-22 20:46:35 -04:00
Odd Stråbø 3f63e7c213 Fix linting, flake8 and sonarcloud issues 2020-04-19 12:07:55 +02:00
Odd Stråbø 795dfd38df Get the logger from a central place 2020-04-19 03:21:40 +02:00
Chuddah de493d13dd Moved JsonDebugPrinter to existing utils module 2020-02-22 15:04:28 +00:00
Chuddah 7491000a13 Replaced debug output of json.dumps with an indirection to lazy __str__.
json.dumps is a processing intensive operation. This is being called
every time data is received from the server (most noticeably during
library updates) for debug logging. If the user has debug logging
disabled (the default option) then the user is still paying for
processing which is discarded.

The fix is to add a level of indirection where the dumps function is
only called if a string representation of the json is requested; ie.
when the debug string is evaluated.
2020-02-16 22:17:05 +00:00
Abby 42258c699a Removed unnecessary log messages and changed some to debug (#167) 2020-01-05 18:41:26 -05:00
Odd Stråbø 933a31ac23 Fixes for Kodi 18.5 (and Python2) 2020-01-04 05:17:51 +01:00
Odd Stråbø a51bf9c2cc Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
mcarlton00 a7c96577cd Remove all emby api endpoints 2019-12-14 08:19:57 -05:00
TrueTechy 7e8f34401d Remove Core folder 2019-11-07 22:59:10 +01:00