Commit Graph

91 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ø 1899ecb999 Also catch HTTPException in API.check_companion_enabled 2024-05-18 01:54:06 +02:00
Odd Stråbø 4c6b69abf6 Check KodiSyncQueue GetPluginSettings endpoint
to determine whether the plugin is enabled or not

Fixes #861
2024-05-17 05:41:36 +02:00
Wild Sands 62089174ce Call correct API endpoint when adding users to session 2024-04-08 17:22:54 +02:00
Shane McMaster 3d24ca8af9
adjust capability delay to 5s 2024-03-01 11:31:12 +13:00
Shane McMaster fbaef1b48e
change ws_client to use libraries reconnect param 2024-03-01 11:31:12 +13:00
Dis c20e3efc35
fixup 2023-08-30 16:23:35 -04:00
Dis 1c10c5cf02
fix: #381 allow 10s for slow authentication 2023-08-30 16:20:54 -04:00
Marcell Kovács 0ec3741ef8
fix grammar 2023-02-07 18:03:35 +01:00
Kian-Meng Ang 1f48b62a93 Fix typos
Found via `codespell -S resources`
2022-11-14 09:14:06 +08:00
Odd Stråbø 7b2051f883 Result is already unpacked 2022-10-18 18:58:30 +02:00
Odd Stråbø 16db25e876 Companion: check list of installed plugins
instead of only poking the ServerDate plugin endpoint
2022-10-18 17:45:51 +02:00
Matt 7f109d4d71 Include a payload when disallowing remote control 2022-07-19 18:51:30 -04:00
Matt 1fcc0d97e3 Add setting to disable remote control 2022-04-02 21:23:11 -04:00
Matt eae01cfec9 Move retry to class, more accurately target schema replace 2021-11-15 19:20:38 -05:00
Matt 2427f566fa Attempt to reestablished websocket communication if the connection fails 2021-11-14 13:37:23 -05:00
Odd Stråbø 04b1fcea48 Verify ssl by default 2021-10-19 23:00:23 +02:00
Odd Stråbø 833f72ff5d Don't store CriticRating in the userrating db field 2021-10-12 18:50:24 +02:00
Odd Stråbø 53c887d354 Use module-relative imports 2021-10-12 18:08:47 +02:00
Odd Stråbø 1462e07fa5 Apply suggestions from code review 2021-10-10 16:40:58 +02:00
Brian Pepple bfc18e7d4b Merge dictionary assignment with declaration 2021-10-10 16:40:58 +02:00
Brian Pepple 52525d4725 Inline variable that is immediately returned 2021-10-10 16:40:58 +02:00
Brian Pepple f5c0016914 Remove redundant conditional 2021-10-10 16:40:58 +02:00
jessbo 9b2d499a9c jellyfin_kodi/{jellyfin/api,player}.py: Add missing "PlaySessionId" argument to close_transcode().
Without this argument, server always returns 400.
2021-08-29 15:45:40 -04:00
Matt 53aa27444b Arguments with a linter 2021-05-16 21:48:37 -04:00
Matt a4e024634f Make linter ignore these imports 2021-05-16 21:43:35 -04:00
Matt 405a0038a3 Stop throwing errors during playback reporting 2021-05-11 19:55:08 -04:00
Matt 293dc7a768 Make sure numpy doesn't cause issues 2021-05-11 19:51:34 -04:00
Matt 21c4a8539f Change websocket import location 2021-05-02 16:52:48 -04:00
Matt 979c077231 Move websocket to a dependency 2021-05-02 16:52:41 -04:00
mcarlton00 01b114c19e
Merge pull request #475 from oddstr13/plural(s)
Fix: Get specific library vs list of libraries
2021-02-24 21:12:37 -05:00
Odd Stråbø 9b30c883ea Fix import order 2021-02-23 02:53:10 +01:00
Odd Stråbø 164fc50d98 Named tuples and type hints? What is this magic? 2021-02-23 02:42:26 +01:00
Odd Stråbø 153396acbb array.array.tostring is removed in Python 3.9 2021-02-22 04:10:32 +01:00
mcarlton00 a51fd6b932
Merge pull request #431 from oddstr13/pr-10.7-1
Fix some minor issues highlighted by 10.7
2020-12-20 18:57:49 -05:00
Matt d1a66e00c3 Make sure status code gets returned in payload 2020-12-16 21:32:25 -05:00
Abby f943316d25
Merge pull request #438 from mcarlton00/context-is-important
Move api_client details to context.py
2020-11-29 21:22:07 +00:00
Matt 203fb81f58 Move api_client details to context.py 2020-11-29 15:19:10 -05:00
Odd Stråbø 9971940cac [websocket] Remove deprecated base64.encodestring
Clean up _validate_header a little bit
2020-11-29 19:25:49 +01:00
Abby Gourlay 8de6c30417 Fixing pipeline complaint about import order 2020-11-28 22:12:06 +00:00
Abby Gourlay f0b0f551b6 Fixed dialog for deleting items + setup JellyfinClient for non-default entrypoints 2020-11-28 22:06:17 +00: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ø 8a9b69f2f5 Remove extra leading slash from the KodiSyncQueue ping endpoint 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
cvium a009530434 Byebye TheVoid 2020-11-17 11:00:50 -05:00
Odd Stråbø 020bd59766 Fixes jellyfin/jellyfin-kodi#421
Jellyfin autodiscovery is IPv4 broadcast only.
We're not binding to a specific port, no need for SO_REUSEADDR.

IP_MULTICAST_LOOP belongs to IPPROTO_IP
https://tldp.org/HOWTO/Multicast-HOWTO-6.html
and SO_REUSEADDR belongs to SOL_SOCKET
https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options
2020-11-15 18:50:54 +01:00
mcarlton00 4e2c8a0af3
Merge pull request #366 from oddstr13/pr-json-filter-1
Filter keys containing None values from dictionaries returned from the server
2020-08-21 17:43:52 -04: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
Abby Gourlay a1a318d636 SSL Verification Fix 2020-08-10 12:38:24 +01:00