lghorizon 0.6.4__tar.gz → 0.6.6__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 (28) hide show
  1. {lghorizon-0.6.4 → lghorizon-0.6.6}/.gitignore +2 -0
  2. {lghorizon-0.6.4 → lghorizon-0.6.6}/PKG-INFO +1 -1
  3. {lghorizon-0.6.4 → lghorizon-0.6.6}/instructions.txt +3 -1
  4. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon/const.py +12 -23
  5. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon/lghorizon_api.py +198 -113
  6. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon/models.py +162 -97
  7. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon.egg-info/PKG-INFO +1 -1
  8. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon.egg-info/SOURCES.txt +2 -0
  9. lghorizon-0.6.6/secrets_stub.json +5 -0
  10. lghorizon-0.6.6/test.py +67 -0
  11. {lghorizon-0.6.4 → lghorizon-0.6.6}/.coverage +0 -0
  12. {lghorizon-0.6.4 → lghorizon-0.6.6}/.flake8 +0 -0
  13. {lghorizon-0.6.4 → lghorizon-0.6.6}/.github/workflows/build-on-pr.yml +0 -0
  14. {lghorizon-0.6.4 → lghorizon-0.6.6}/.github/workflows/publish-to-pypi.yml +0 -0
  15. {lghorizon-0.6.4 → lghorizon-0.6.6}/LICENSE +0 -0
  16. {lghorizon-0.6.4 → lghorizon-0.6.6}/README.md +0 -0
  17. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon/__init__.py +0 -0
  18. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon/exceptions.py +0 -0
  19. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon/helpers.py +0 -0
  20. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon/py.typed +0 -0
  21. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon.egg-info/dependency_links.txt +0 -0
  22. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon.egg-info/not-zip-safe +0 -0
  23. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon.egg-info/requires.txt +0 -0
  24. {lghorizon-0.6.4 → lghorizon-0.6.6}/lghorizon.egg-info/top_level.txt +0 -0
  25. {lghorizon-0.6.4 → lghorizon-0.6.6}/lib64 +0 -0
  26. {lghorizon-0.6.4 → lghorizon-0.6.6}/pyvenv.cfg +0 -0
  27. {lghorizon-0.6.4 → lghorizon-0.6.6}/setup.cfg +0 -0
  28. {lghorizon-0.6.4 → lghorizon-0.6.6}/setup.py +0 -0
@@ -22,3 +22,5 @@ logs/
22
22
  __pycache__/
23
23
  __pycache__/*
24
24
  test/nl.py
25
+ secrets.json
26
+ logfile.log
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lghorizon
3
- Version: 0.6.4
3
+ Version: 0.6.6
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
@@ -1,7 +1,9 @@
1
1
  install-local: python3 -m pip install --upgrade -e .
2
2
 
3
+ copy secrets_stub.json to secrets.json and update credentials in that file
4
+
3
5
  tag: git tag -a v0.4.7 -m "v0.4.7"
4
6
  git push origin v0.4.7
5
7
 
6
8
  create sdist: python3 -m build
7
- upload: python3 -m twine upload dist/lghorizon-0.4.7*
9
+ // Create release on github
@@ -40,7 +40,6 @@ BE_AUTH_URL = "https://login.prd.telenet.be/openid/login.do"
40
40
  COUNTRY_SETTINGS = {
41
41
  "nl": {
42
42
  "api_url": "https://prod.spark.ziggogo.tv",
43
- "personalization_url_format": "https://prod.spark.ziggogo.tv/nld/web/personalization-service/v1/customer/{household_id}/devices",
44
43
  "mqtt_url": "obomsg.prod.nl.horizon.tv",
45
44
  "use_oauth": False,
46
45
  "channels": [
@@ -73,16 +72,12 @@ COUNTRY_SETTINGS = {
73
72
  },
74
73
  "ch": {
75
74
  "api_url": "https://prod.spark.sunrisetv.ch",
76
- "personalization_url_format": "https://prod.spark.sunrisetv.ch/eng/web/personalization-service/v1/customer/{householdId}/devices",
77
- "mqtt_url": "messagebroker-prod-ch.gnp.cloud.dmdsdp.com",
78
75
  "use_oauth": False,
79
76
  "channels": [],
80
77
  "language": "de",
81
78
  },
82
79
  "be-nl": {
83
- "api_url": "https://prod.spark.telenet.tv",
84
- "personalization_url_format": "https://prod.spark.telenettv.be/nld/web/personalization-service/v1/customer/{household_id}/devices",
85
- "mqtt_url": "obomsg.prod.be.horizon.tv",
80
+ "api_url": "https://spark-prod-be.gnp.cloud.telenet.tv",
86
81
  "use_oauth": True,
87
82
  "oauth_username_fieldname": "j_username",
88
83
  "oauth_password_fieldname": "j_password",
@@ -130,18 +125,16 @@ COUNTRY_SETTINGS = {
130
125
  # "oauth_redirect_header": "Location",
131
126
  # "channels": [],
132
127
  # },
133
- "at": {
134
- "api_url": "https://prod.spark.magentatv.at",
135
- "personalization_url_format": "https://prod.spark.magentatv.at/deu/web/personalization-service/v1/customer/{householdId}/devices",
136
- "mqtt_url": "obomsg.prod.at.horizon.tv",
137
- "use_oauth": False,
138
- "channels": [],
139
- "language": "de",
140
- },
128
+ # "at": {
129
+ # "api_url": "https://prod.spark.magentatv.at",
130
+ # "personalization_url_format": "https://prod.spark.magentatv.at/deu/web/personalization-service/v1/customer/{householdId}/devices",
131
+ # "mqtt_url": "obomsg.prod.at.horizon.tv",
132
+ # "use_oauth": False,
133
+ # "channels": [],
134
+ # "language": "de",
135
+ # },
141
136
  "gb": {
142
- "api_url": "https://prod.spark.virginmedia.com",
143
- "personalization_url_format": "https://prod.spark.virginmedia.com/eng/web/personalization-service/v1/customer/{household_id}/devices",
144
- "mqtt_url": "obomsg.prod.gb.horizon.tv",
137
+ "api_url": "https://spark-prod-gb.gnp.cloud.virgintvgo.virginmedia.com",
145
138
  "oauth_url": "https://id.virginmedia.com/rest/v40/session/start?protocol=oidc&rememberMe=true",
146
139
  "channels": [],
147
140
  "oesp_url": "https://prod.oesp.virginmedia.com/oesp/v4/GB/eng/web",
@@ -161,17 +154,13 @@ COUNTRY_SETTINGS = {
161
154
  # "channels": [],
162
155
  # },
163
156
  "ie": {
164
- "api_url": "https://prod.spark.virginmediatv.ie",
165
- "personalization_url_format": "https://prod.spark.virginmediatv.ie/eng/web/personalization-service/v1/customer/{householdId}/devices",
166
- "mqtt_url": "obomsg.prod.ie.horizon.tv",
157
+ "api_url": "https://spark-prod-ie.gnp.cloud.virginmediatv.ie",
167
158
  "use_oauth": False,
168
159
  "channels": [],
169
160
  "language": "en",
170
161
  },
171
162
  "pl": {
172
- "api_url": "https://prod.spark.upctv.pl/",
173
- "personalization_url_format": "https://prod.spark.upctv.pl/pol/web/personalization-service/v1/customer/{householdId}/devices",
174
- "mqtt_url": "obomsg.prod.pl.horizon.tv",
163
+ "api_url": "https://spark-prod-pl.gnp.cloud.upctv.pl",
175
164
  "use_oauth": False,
176
165
  "channels": [],
177
166
  "language": "pl",