PyChromecast 14.0.4__tar.gz → 14.0.5__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.
Files changed (48) hide show
  1. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/PKG-INFO +1 -1
  2. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/PyChromecast.egg-info/PKG-INFO +1 -1
  3. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/config.py +1 -0
  4. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/socket_client.py +12 -0
  5. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pyproject.toml +1 -1
  6. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/LICENSE +0 -0
  7. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/MANIFEST.in +0 -0
  8. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/PyChromecast.egg-info/SOURCES.txt +0 -0
  9. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/PyChromecast.egg-info/dependency_links.txt +0 -0
  10. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/PyChromecast.egg-info/not-zip-safe +0 -0
  11. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/PyChromecast.egg-info/requires.txt +0 -0
  12. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/PyChromecast.egg-info/top_level.txt +0 -0
  13. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/README.rst +0 -0
  14. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/__init__.py +0 -0
  15. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/const.py +0 -0
  16. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/__init__.py +0 -0
  17. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/bbciplayer.py +0 -0
  18. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/bbcsounds.py +0 -0
  19. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/bubbleupnp.py +0 -0
  20. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/dashcast.py +0 -0
  21. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/heartbeat.py +0 -0
  22. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/homeassistant.py +0 -0
  23. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/homeassistant_media.py +0 -0
  24. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/media.py +0 -0
  25. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/multizone.py +0 -0
  26. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/nrkradio.py +0 -0
  27. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/nrktv.py +0 -0
  28. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/plex.py +0 -0
  29. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/receiver.py +0 -0
  30. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/shaka.py +0 -0
  31. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/supla.py +0 -0
  32. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/yleareena.py +0 -0
  33. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/controllers/youtube.py +0 -0
  34. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/dial.py +0 -0
  35. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/discovery.py +0 -0
  36. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/error.py +0 -0
  37. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/generated/authority_keys_pb2.py +0 -0
  38. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/generated/authority_keys_pb2.pyi +0 -0
  39. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/generated/cast_channel_pb2.py +0 -0
  40. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/generated/cast_channel_pb2.pyi +0 -0
  41. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/generated/logging_pb2.py +0 -0
  42. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/generated/logging_pb2.pyi +0 -0
  43. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/generated/readme.txt +0 -0
  44. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/models.py +0 -0
  45. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/quick_play.py +0 -0
  46. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/pychromecast/response_handler.py +0 -0
  47. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/requirements.txt +0 -0
  48. {PyChromecast-14.0.4 → PyChromecast-14.0.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyChromecast
3
- Version: 14.0.4
3
+ Version: 14.0.5
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.4
3
+ Version: 14.0.5
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
@@ -22,6 +22,7 @@ APP_BBCIPLAYER = "5E81F6DB"
22
22
  APP_SHAKA = "07AEE832"
23
23
  APP_NRKTV = "3AEDF8D1"
24
24
  APP_NRKRADIO = "A49874B1"
25
+ APP_AUDIBLE = "25456794"
25
26
 
26
27
 
27
28
  def get_possible_app_ids() -> list[str]:
@@ -24,6 +24,7 @@ from struct import pack, unpack
24
24
 
25
25
  import zeroconf
26
26
 
27
+ from .config import APP_AUDIBLE
27
28
  from .const import MESSAGE_TYPE, PLATFORM_DESTINATION_ID, REQUEST_ID, SESSION_ID
28
29
  from .controllers import BaseController, CallbackType
29
30
  from .controllers.heartbeat import NS_HEARTBEAT, HeartbeatController
@@ -485,6 +486,17 @@ class SocketClient(threading.Thread, CastStatusListener):
485
486
  self.session_id = status.session_id
486
487
 
487
488
  if new_channel and self.destination_id is not None:
489
+ # App quirk: If the Audible app is running, wait 1s after receiving cast status
490
+ # before connecting to the media player channel. This is a workaround for
491
+ # https://github.com/home-assistant-libs/pychromecast/issues/738
492
+ if (
493
+ any(namespace in self._handlers for namespace in self.app_namespaces)
494
+ and self.destination_id not in self._open_channels
495
+ and status.app_id == APP_AUDIBLE
496
+ ):
497
+ self.logger.debug("Detected Audible connection. Sleeping for 1s")
498
+ time.sleep(1)
499
+
488
500
  # If any of the namespaces of the new app are supported
489
501
  # we will automatically connect to it to receive updates
490
502
  for namespace in self.app_namespaces:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "PyChromecast"
7
- version = "14.0.4"
7
+ version = "14.0.5"
8
8
  description = "Python module to talk to Google Chromecast."
9
9
  readme = "README.rst"
10
10
  authors = [
File without changes
File without changes
File without changes
File without changes