PyChromecast 14.0.2__tar.gz → 14.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/PKG-INFO +1 -1
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/PyChromecast.egg-info/PKG-INFO +1 -1
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/socket_client.py +5 -3
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pyproject.toml +1 -1
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/requirements.txt +1 -1
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/LICENSE +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/MANIFEST.in +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/PyChromecast.egg-info/SOURCES.txt +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/PyChromecast.egg-info/dependency_links.txt +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/PyChromecast.egg-info/not-zip-safe +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/PyChromecast.egg-info/requires.txt +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/PyChromecast.egg-info/top_level.txt +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/README.rst +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/__init__.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/config.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/const.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/__init__.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/bbciplayer.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/bbcsounds.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/bubbleupnp.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/dashcast.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/homeassistant.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/homeassistant_media.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/media.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/multizone.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/nrkradio.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/nrktv.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/plex.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/receiver.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/shaka.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/supla.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/yleareena.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/controllers/youtube.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/dial.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/discovery.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/error.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/generated/authority_keys_pb2.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/generated/authority_keys_pb2.pyi +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/generated/cast_channel_pb2.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/generated/cast_channel_pb2.pyi +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/generated/logging_pb2.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/generated/logging_pb2.pyi +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/generated/readme.txt +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/models.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/quick_play.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/pychromecast/response_handler.py +0 -0
- {PyChromecast-14.0.2 → PyChromecast-14.0.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyChromecast
|
|
3
|
-
Version: 14.0.
|
|
3
|
+
Version: 14.0.3
|
|
4
4
|
Summary: Python module to talk to Google Chromecast.
|
|
5
5
|
Author-email: Paulus Schoutsen <paulus@paulusschoutsen.nl>
|
|
6
6
|
Project-URL: Homepage, https://github.com/home-assistant-libs/pychromecast
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyChromecast
|
|
3
|
-
Version: 14.0.
|
|
3
|
+
Version: 14.0.3
|
|
4
4
|
Summary: Python module to talk to Google Chromecast.
|
|
5
5
|
Author-email: Paulus Schoutsen <paulus@paulusschoutsen.nl>
|
|
6
6
|
Project-URL: Homepage, https://github.com/home-assistant-libs/pychromecast
|
|
@@ -67,6 +67,8 @@ CONNECTION_STATUS_LOST = "LOST"
|
|
|
67
67
|
|
|
68
68
|
HB_PING_TIME = 10
|
|
69
69
|
HB_PONG_TIME = 10
|
|
70
|
+
POLL_TIME_BLOCKING = 5.0
|
|
71
|
+
POLL_TIME_NON_BLOCKING = 0.01
|
|
70
72
|
TIMEOUT_TIME = 30.0
|
|
71
73
|
RETRY_TIME = 5.0
|
|
72
74
|
|
|
@@ -538,7 +540,7 @@ class SocketClient(threading.Thread, CastStatusListener):
|
|
|
538
540
|
self.logger.debug("Thread started...")
|
|
539
541
|
while not self.stop.is_set():
|
|
540
542
|
try:
|
|
541
|
-
if self._run_once() == 1:
|
|
543
|
+
if self._run_once(timeout=POLL_TIME_BLOCKING) == 1:
|
|
542
544
|
break
|
|
543
545
|
except Exception: # pylint: disable=broad-except
|
|
544
546
|
self._force_recon = True
|
|
@@ -553,7 +555,7 @@ class SocketClient(threading.Thread, CastStatusListener):
|
|
|
553
555
|
# Clean up
|
|
554
556
|
self._cleanup()
|
|
555
557
|
|
|
556
|
-
def _run_once(self) -> int:
|
|
558
|
+
def _run_once(self, timeout: float = POLL_TIME_NON_BLOCKING) -> int:
|
|
557
559
|
"""Receive from the socket and handle data."""
|
|
558
560
|
# pylint: disable=too-many-branches, too-many-statements, too-many-return-statements
|
|
559
561
|
|
|
@@ -568,7 +570,7 @@ class SocketClient(threading.Thread, CastStatusListener):
|
|
|
568
570
|
|
|
569
571
|
# poll the socket, as well as the socketpair to allow us to be interrupted
|
|
570
572
|
try:
|
|
571
|
-
ready = self.selector.select()
|
|
573
|
+
ready = self.selector.select(timeout)
|
|
572
574
|
except (ValueError, OSError) as exc:
|
|
573
575
|
self.logger.error(
|
|
574
576
|
"[%s(%s):%s] Error in select call: %s",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|