lghorizon 0.8.5__tar.gz → 0.8.7__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 (29) hide show
  1. {lghorizon-0.8.5 → lghorizon-0.8.7}/.github/workflows/build-on-pr.yml +1 -1
  2. {lghorizon-0.8.5 → lghorizon-0.8.7}/.github/workflows/publish-to-pypi.yml +1 -1
  3. {lghorizon-0.8.5 → lghorizon-0.8.7}/PKG-INFO +3 -2
  4. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon/models.py +15 -6
  5. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon.egg-info/PKG-INFO +3 -2
  6. {lghorizon-0.8.5 → lghorizon-0.8.7}/.coverage +0 -0
  7. {lghorizon-0.8.5 → lghorizon-0.8.7}/.flake8 +0 -0
  8. {lghorizon-0.8.5 → lghorizon-0.8.7}/.gitignore +0 -0
  9. {lghorizon-0.8.5 → lghorizon-0.8.7}/LICENSE +0 -0
  10. {lghorizon-0.8.5 → lghorizon-0.8.7}/README.md +0 -0
  11. {lghorizon-0.8.5 → lghorizon-0.8.7}/instructions.txt +0 -0
  12. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon/__init__.py +0 -0
  13. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon/const.py +0 -0
  14. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon/exceptions.py +0 -0
  15. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon/helpers.py +0 -0
  16. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon/lghorizon_api.py +0 -0
  17. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon/py.typed +0 -0
  18. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon.egg-info/SOURCES.txt +0 -0
  19. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon.egg-info/dependency_links.txt +0 -0
  20. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon.egg-info/not-zip-safe +0 -0
  21. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon.egg-info/requires.txt +0 -0
  22. {lghorizon-0.8.5 → lghorizon-0.8.7}/lghorizon.egg-info/top_level.txt +0 -0
  23. {lghorizon-0.8.5 → lghorizon-0.8.7}/lib64 +0 -0
  24. {lghorizon-0.8.5 → lghorizon-0.8.7}/pyvenv.cfg +0 -0
  25. {lghorizon-0.8.5 → lghorizon-0.8.7}/renovate.json +0 -0
  26. {lghorizon-0.8.5 → lghorizon-0.8.7}/secrets_stub.json +0 -0
  27. {lghorizon-0.8.5 → lghorizon-0.8.7}/setup.cfg +0 -0
  28. {lghorizon-0.8.5 → lghorizon-0.8.7}/setup.py +0 -0
  29. {lghorizon-0.8.5 → lghorizon-0.8.7}/test.py +0 -0
@@ -13,7 +13,7 @@ jobs:
13
13
  - name: Set up Python 3.10
14
14
  uses: actions/setup-python@v5
15
15
  with:
16
- python-version: '3.10'
16
+ python-version: '3.13'
17
17
  - name: Install pypa/build
18
18
  run: >-
19
19
  python -m
@@ -14,7 +14,7 @@ jobs:
14
14
  - name: Set up Python 3.10
15
15
  uses: actions/setup-python@v5
16
16
  with:
17
- python-version: '3.10'
17
+ python-version: '3.13'
18
18
 
19
19
  - name: Install pypa/build
20
20
  run: >-
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: lghorizon
3
- Version: 0.8.5
3
+ Version: 0.8.7
4
4
  Summary: Python client for Liberty Global Horizon settop boxes
5
5
  Home-page: https://github.com/sholofly/LGHorizon-python
6
6
  Author: Rudolf Offereins
@@ -31,6 +31,7 @@ Dynamic: description-content-type
31
31
  Dynamic: home-page
32
32
  Dynamic: keywords
33
33
  Dynamic: license
34
+ Dynamic: license-file
34
35
  Dynamic: requires-dist
35
36
  Dynamic: requires-python
36
37
  Dynamic: summary
@@ -293,11 +293,17 @@ class LGHorizonRecordingListSeasonShow(LGHorizonBaseRecording):
293
293
  def __init__(self, recording_season_json):
294
294
  """Init the single recording."""
295
295
 
296
+ poster_url = None
297
+ if (
298
+ "poster" in recording_season_json
299
+ and "url" in recording_season_json["poster"]
300
+ ):
301
+ poster_url = recording_season_json["poster"]["url"]
296
302
  LGHorizonBaseRecording.__init__(
297
303
  self,
298
304
  recording_season_json["id"],
299
305
  recording_season_json["title"],
300
- recording_season_json["poster"]["url"],
306
+ poster_url,
301
307
  recording_season_json["channelId"],
302
308
  recording_season_json["type"],
303
309
  )
@@ -685,11 +691,14 @@ class LGHorizonBox:
685
691
 
686
692
  def send_key_to_box(self, key: str) -> None:
687
693
  """Send emulated (remote) key press to settopbox."""
688
- payload = (
689
- '{"type":"CPE.KeyEvent","status":{"w3cKey":"'
690
- + key
691
- + '","eventType":"keyDownUp"}}'
692
- )
694
+ payload_dict = {
695
+ "type": "CPE.KeyEvent",
696
+ "runtimeType": "key",
697
+ "id": "ha",
698
+ "source": self.device_id.lower(),
699
+ "status": {"w3cKey": key, "eventType": "keyDownUp"},
700
+ }
701
+ payload = json.dumps(payload_dict)
693
702
  self._mqtt_client.publish_message(
694
703
  f"{self._auth.household_id}/{self.device_id}", payload
695
704
  )
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: lghorizon
3
- Version: 0.8.5
3
+ Version: 0.8.7
4
4
  Summary: Python client for Liberty Global Horizon settop boxes
5
5
  Home-page: https://github.com/sholofly/LGHorizon-python
6
6
  Author: Rudolf Offereins
@@ -31,6 +31,7 @@ Dynamic: description-content-type
31
31
  Dynamic: home-page
32
32
  Dynamic: keywords
33
33
  Dynamic: license
34
+ Dynamic: license-file
34
35
  Dynamic: requires-dist
35
36
  Dynamic: requires-python
36
37
  Dynamic: summary
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