lghorizon 0.7.0__tar.gz → 0.7.1__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.
- {lghorizon-0.7.0 → lghorizon-0.7.1}/PKG-INFO +1 -1
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon/lghorizon_api.py +12 -6
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon.egg-info/PKG-INFO +1 -1
- {lghorizon-0.7.0 → lghorizon-0.7.1}/.coverage +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/.flake8 +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/.github/workflows/build-on-pr.yml +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/.github/workflows/publish-to-pypi.yml +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/.gitignore +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/LICENSE +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/README.md +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/instructions.txt +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon/__init__.py +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon/const.py +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon/exceptions.py +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon/helpers.py +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon/models.py +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon/py.typed +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon.egg-info/SOURCES.txt +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon.egg-info/dependency_links.txt +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon.egg-info/not-zip-safe +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon.egg-info/requires.txt +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lghorizon.egg-info/top_level.txt +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/lib64 +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/pyvenv.cfg +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/renovate.json +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/secrets_stub.json +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/setup.cfg +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/setup.py +0 -0
- {lghorizon-0.7.0 → lghorizon-0.7.1}/test.py +0 -0
|
@@ -63,7 +63,7 @@ class LGHorizonApi:
|
|
|
63
63
|
password: str,
|
|
64
64
|
country_code: str = "nl",
|
|
65
65
|
identifier: str = None,
|
|
66
|
-
refresh_token
|
|
66
|
+
refresh_token=None,
|
|
67
67
|
) -> None:
|
|
68
68
|
"""Create LGHorizon API."""
|
|
69
69
|
self.username = username
|
|
@@ -117,7 +117,9 @@ class LGHorizonApi:
|
|
|
117
117
|
|
|
118
118
|
def authorize_gb(self) -> None:
|
|
119
119
|
_logger.debug("Authorizing via refresh")
|
|
120
|
-
refresh_url = (
|
|
120
|
+
refresh_url = (
|
|
121
|
+
f"{self._country_settings['api_url']}/auth-service/v1/authorization/refresh"
|
|
122
|
+
)
|
|
121
123
|
headers = {"content-type": "application/json", "charset": "utf-8"}
|
|
122
124
|
payload = '{"refreshToken":"' + self.refresh_token + '"}'
|
|
123
125
|
|
|
@@ -290,10 +292,14 @@ class LGHorizonApi:
|
|
|
290
292
|
self.settop_boxes[deviceId].playing_info.set_paused(
|
|
291
293
|
playerState["speed"] == 0
|
|
292
294
|
)
|
|
293
|
-
if
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
if (
|
|
296
|
+
source_type
|
|
297
|
+
in (
|
|
298
|
+
BOX_PLAY_STATE_CHANNEL,
|
|
299
|
+
BOX_PLAY_STATE_BUFFER,
|
|
300
|
+
BOX_PLAY_STATE_REPLAY,
|
|
301
|
+
)
|
|
302
|
+
and "eventId" in state_source
|
|
297
303
|
):
|
|
298
304
|
eventId = state_source["eventId"]
|
|
299
305
|
raw_replay_event = self._do_api_call(
|
|
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
|
|
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
|