Commit graph

83 commits

Author SHA1 Message Date
croneter
0fd7d11631 Add information to PKC settings about status of websocket and Alexa websocket connections 2021-03-14 13:58:12 +01:00
croneter
f134266efc Improve logging for websocket JSON loads 2021-03-01 10:48:12 +01:00
croneter
e9218bf311 Enable PKC background sync for all Plex Home users! 2020-05-07 13:56:13 +02:00
croneter
c34f43cead Fix websocket threads not getting suspended correctly 2020-05-07 13:56:13 +02:00
croneter
5ffcd5782d Optimize some websocket code 2020-05-07 13:56:13 +02:00
croneter
54a147da41 Revert "Rewire suspension of waking up of websocket threads"
This reverts commit dccd3e512b.
2020-05-07 07:27:30 +02:00
croneter
dccd3e512b Rewire suspension of waking up of websocket threads 2020-05-07 07:26:03 +02:00
croneter
c85e1e2bd0 Optimize threads by using events instead of a polling mechanism. Fixes PKC become unresponsive, e.g. when switching users 2019-11-30 13:48:51 +01:00
croneter
228cdc437d Never give up trying to connect to the PMS or Alexa using websockets 2019-08-17 09:52:58 +02:00
croneter
3c9eb71324 Fix websocket threads not exiting correctly 2019-02-21 08:47:36 +01:00
croneter
1787e51c7c Zentrally register threads and introduce a way to wait for their suspension 2019-02-06 14:19:10 +01:00
croneter
0e16eb703a Do not allow insecure HTTPS websocket connections for Kodi Leia in any case 2019-02-05 13:10:00 +01:00
croneter
7b21caceae Allow websocket redirects 2019-02-05 13:09:59 +01:00
croneter
2c77bd28af Implement Codacy suggestions 2019-02-03 20:22:41 +01:00
croneter
6dc436da91 Rewire PKC startup and authentication mechanism 2018-11-25 17:03:19 +01:00
croneter
6fe0e23f53 Interrupt sleep if Kodi exits. Use Monitor's Player() 2018-11-20 16:58:25 +01:00
croneter
a045063769 Rather big change of PKC's plumbing 2018-11-18 14:59:17 +01:00
croneter
c5741c7225 Use xml.etree.cElementTree whenever possible to avoid memory leaks 2018-10-13 20:17:16 +02:00
croneter
b29e07846f Safely parse XMLs using defusedxml 2018-09-05 17:36:38 +02:00
croneter
4e0429fcc9 Fix switching to __future__ module
- Fixes #507
2018-07-12 18:46:02 +02:00
Croneter
c440dc7779 Switch to absolute imports 2018-06-21 19:24:37 +02:00
Croneter
1f0977ec77 Fix Plex Companion failing leading to PMS connection loss 2018-05-30 08:20:30 +02:00
croneter
d74c26fd4c Fix disabling of background sync (websockets)
- Partially fixes #425
2018-03-10 12:58:11 +01:00
croneter
e02e9bcd1f Rename thread methods 2018-02-11 14:57:39 +01:00
croneter
ca11528593 Prettify 2018-02-11 13:24:00 +01:00
croneter
90a0c4b545 Replace websocket shutdown with close 2018-02-09 15:10:20 +01:00
tomkat83
eb6b1fbe48 Remove obsolete code 2018-01-07 10:56:24 +01:00
tomkat83
e17824609a Greatly simplify handling of PKC playqueues 2018-01-06 15:19:12 +01:00
tomkat83
d8e4093696 Use variable.py's machineIdentifier 2018-01-01 13:46:21 +01:00
tomkat83
cdd38c6ef7 Optimize some imports 2017-12-09 14:35:08 +01:00
croneter
14b8df4f9c Fix Alexa websocket not exiting on Handshake Status 403 2017-09-15 20:01:20 +02:00
croneter
274ed4b430 Background sync now picks up more PMS changes 2017-09-08 12:06:31 +02:00
croneter
3ada7d1a98 More specific exception handling 2017-09-06 19:26:48 +02:00
croneter
81084ea479 Increase logging for websockets 2017-09-06 14:14:42 +02:00
tomkat83
f7da47f2d5 Rename Plex user id 2017-05-17 16:15:16 +02:00
tomkat83
bfe174dc09 Add state for Plex user ID 2017-05-17 15:57:30 +02:00
tomkat83
b532b74b84 Fix websockets 2017-05-17 14:34:52 +02:00
tomkat83
7a174f5a7e Fix Alexa thread suspend 2017-05-17 14:20:43 +02:00
tomkat83
06727fca71 Fix thread methods 2017-05-17 13:55:24 +02:00
tomkat83
a63b90dd5f Revert "Revert "Code refactoring: avoid window vars in loops""
This reverts commit b6197231fa.
2017-05-17 10:09:50 +02:00
tomkat83
b6197231fa Revert "Code refactoring: avoid window vars in loops"
This reverts commit 6629fb41e3.
2017-05-14 16:41:22 +02:00
tomkat83
6629fb41e3 Code refactoring: avoid window vars in loops 2017-05-12 12:52:12 +02:00
tomkat83
715513cdb3 Fix spelling 2017-03-05 15:48:08 +01:00
tomkat83
df6d753c18 Only try to connect Alexa if we got a Plex token 2017-03-05 15:44:01 +01:00
tomkat83
57408c5137 Suspend Alexa thread if Plex user is restricted
- Alexa currently only works for the master user for Plex home
2017-03-05 15:38:13 +01:00
tomkat83
b734d0be8e Amazon Alexa support! 2017-03-04 17:54:24 +01:00
tomkat83
0c2d4984ab Playqueues major haul-over 2016-12-27 17:33:52 +01:00
tomkat83
9d2cf86091 Optimize websocket imports 2016-12-20 16:30:22 +01:00
tomkat83
17fc11d8bb Optimize websocket client queue 2016-12-20 16:27:22 +01:00
tomkat83
ad8b7c7d90 Merge Master 2016-12-20 16:13:19 +01:00