pyblu 0.3.2__tar.gz → 0.3.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.
- {pyblu-0.3.2 → pyblu-0.3.3}/PKG-INFO +1 -1
- {pyblu-0.3.2 → pyblu-0.3.3}/pyproject.toml +1 -1
- {pyblu-0.3.2 → pyblu-0.3.3}/src/pyblu/_entities.py +2 -2
- {pyblu-0.3.2 → pyblu-0.3.3}/src/pyblu/_parse.py +2 -2
- {pyblu-0.3.2 → pyblu-0.3.3}/LICENSE +0 -0
- {pyblu-0.3.2 → pyblu-0.3.3}/README.md +0 -0
- {pyblu-0.3.2 → pyblu-0.3.3}/src/pyblu/__init__.py +0 -0
- {pyblu-0.3.2 → pyblu-0.3.3}/src/pyblu/_player.py +0 -0
|
@@ -27,14 +27,14 @@ class Status:
|
|
|
27
27
|
|
|
28
28
|
volume: int
|
|
29
29
|
"""Volume level with a range of 0-100"""
|
|
30
|
-
volume_db:
|
|
30
|
+
volume_db: float
|
|
31
31
|
"""Volume level in dB"""
|
|
32
32
|
|
|
33
33
|
mute: bool
|
|
34
34
|
"""Mute status"""
|
|
35
35
|
mute_volume: int | None
|
|
36
36
|
"""If the player is muted, then this is the unmuted volume level. Absent if the player is not muted."""
|
|
37
|
-
mute_volume_db:
|
|
37
|
+
mute_volume_db: float | None
|
|
38
38
|
"""If the player is muted, then this is the unmuted volume level in dB. Absent if the player is not muted."""
|
|
39
39
|
|
|
40
40
|
seconds: int
|
|
@@ -85,10 +85,10 @@ def parse_status(response_dict: dict[str, Any]) -> Status:
|
|
|
85
85
|
name=name,
|
|
86
86
|
image=chained_get(response_dict, "status", "image"),
|
|
87
87
|
volume=chained_get(response_dict, "status", "volume", _map=int),
|
|
88
|
-
volume_db=chained_get(response_dict, "status", "db", _map=
|
|
88
|
+
volume_db=chained_get(response_dict, "status", "db", _map=float),
|
|
89
89
|
mute=chained_get(response_dict, "status", "mute") == "1",
|
|
90
90
|
mute_volume=chained_get(response_dict, "status", "muteVolume", _map=int),
|
|
91
|
-
mute_volume_db=chained_get(response_dict, "status", "muteDb", _map=
|
|
91
|
+
mute_volume_db=chained_get(response_dict, "status", "muteDb", _map=float),
|
|
92
92
|
seconds=chained_get(response_dict, "status", "secs", _map=int),
|
|
93
93
|
total_seconds=chained_get(response_dict, "status", "totlen", _map=float),
|
|
94
94
|
can_seek=chained_get(response_dict, "status", "canSeek") == "1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|