python-linkplay 0.0.14__tar.gz → 0.0.16__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 (23) hide show
  1. {python_linkplay-0.0.14/src/python_linkplay.egg-info → python_linkplay-0.0.16}/PKG-INFO +2 -2
  2. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/setup.cfg +1 -1
  3. python_linkplay-0.0.16/src/linkplay/__version__.py +1 -0
  4. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/consts.py +1 -1
  5. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/controller.py +5 -1
  6. {python_linkplay-0.0.14 → python_linkplay-0.0.16/src/python_linkplay.egg-info}/PKG-INFO +2 -2
  7. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/python_linkplay.egg-info/requires.txt +1 -1
  8. python_linkplay-0.0.14/src/linkplay/__version__.py +0 -1
  9. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/LICENSE +0 -0
  10. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/README.md +0 -0
  11. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/pyproject.toml +0 -0
  12. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/setup.py +0 -0
  13. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/__init__.py +0 -0
  14. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/__main__.py +0 -0
  15. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/bridge.py +0 -0
  16. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/discovery.py +0 -0
  17. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/endpoint.py +0 -0
  18. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/exceptions.py +0 -0
  19. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/linkplay/utils.py +0 -0
  20. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/python_linkplay.egg-info/SOURCES.txt +0 -0
  21. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/python_linkplay.egg-info/dependency_links.txt +0 -0
  22. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/python_linkplay.egg-info/not-zip-safe +0 -0
  23. {python_linkplay-0.0.14 → python_linkplay-0.0.16}/src/python_linkplay.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python_linkplay
3
- Version: 0.0.14
3
+ Version: 0.0.16
4
4
  Summary: A Python Library for Seamless LinkPlay Device Control
5
5
  Author: Velleman Group nv
6
6
  License: MIT
@@ -13,7 +13,7 @@ Requires-Dist: aiohttp>=3.8.5
13
13
  Requires-Dist: appdirs>=1.4.4
14
14
  Requires-Dist: async_upnp_client>=0.36.2
15
15
  Requires-Dist: deprecated>=1.2.14
16
- Requires-Dist: aiofiles>=24.1.0
16
+ Requires-Dist: aiofiles>=23.1.0
17
17
  Provides-Extra: testing
18
18
  Requires-Dist: pytest>=7.3.1; extra == "testing"
19
19
  Requires-Dist: pytest-cov>=4.1.0; extra == "testing"
@@ -17,7 +17,7 @@ install_requires =
17
17
  appdirs>=1.4.4
18
18
  async_upnp_client>=0.36.2
19
19
  deprecated>=1.2.14
20
- aiofiles>=24.1.0
20
+ aiofiles>=23.1.0
21
21
  python_requires = >=3.11
22
22
  package_dir =
23
23
  =src
@@ -0,0 +1 @@
1
+ __version__ = '0.0.16'
@@ -4,7 +4,7 @@ from enum import IntFlag, StrEnum
4
4
  LOGGER = logging.getLogger("linkplay")
5
5
 
6
6
  API_ENDPOINT: str = "{}/httpapi.asp?command={}"
7
- API_TIMEOUT: int = 2
7
+ API_TIMEOUT: int = 5
8
8
  UNKNOWN_TRACK_PLAYING: str = "Unknown"
9
9
  UPNP_DEVICE_TYPE = "urn:schemas-upnp-org:device:MediaRenderer:1"
10
10
  TCPPORT = 8899
@@ -41,7 +41,11 @@ class LinkPlayController:
41
41
  """Attempts to discover multirooms on the local network."""
42
42
 
43
43
  # Find and update existing multirooms
44
- multirooms = [bridge.multiroom for bridge in self.bridges if bridge.multiroom]
44
+ multirooms = [
45
+ bridge.multiroom
46
+ for bridge in self.bridges
47
+ if bridge.multiroom and bridge.multiroom.leader is bridge
48
+ ]
45
49
 
46
50
  removed_multirooms = []
47
51
  for multiroom in multirooms:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python_linkplay
3
- Version: 0.0.14
3
+ Version: 0.0.16
4
4
  Summary: A Python Library for Seamless LinkPlay Device Control
5
5
  Author: Velleman Group nv
6
6
  License: MIT
@@ -13,7 +13,7 @@ Requires-Dist: aiohttp>=3.8.5
13
13
  Requires-Dist: appdirs>=1.4.4
14
14
  Requires-Dist: async_upnp_client>=0.36.2
15
15
  Requires-Dist: deprecated>=1.2.14
16
- Requires-Dist: aiofiles>=24.1.0
16
+ Requires-Dist: aiofiles>=23.1.0
17
17
  Provides-Extra: testing
18
18
  Requires-Dist: pytest>=7.3.1; extra == "testing"
19
19
  Requires-Dist: pytest-cov>=4.1.0; extra == "testing"
@@ -3,7 +3,7 @@ aiohttp>=3.8.5
3
3
  appdirs>=1.4.4
4
4
  async_upnp_client>=0.36.2
5
5
  deprecated>=1.2.14
6
- aiofiles>=24.1.0
6
+ aiofiles>=23.1.0
7
7
 
8
8
  [testing]
9
9
  pytest>=7.3.1
@@ -1 +0,0 @@
1
- __version__ = '0.0.14'