diff options
| author | TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> | 2022-06-29 11:46:06 -0700 |
|---|---|---|
| committer | TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> | 2022-06-29 11:46:06 -0700 |
| commit | 518b01f5714703fbe788e24a04d29058afeaff0a (patch) | |
| tree | a157e29c0ec26ab3cf2eb767ba8f6831fee40cf4 /backend | |
| parent | 3f2a2bbc040b41b517df1192f27697ed66037b5d (diff) | |
| download | decky-loader-518b01f5714703fbe788e24a04d29058afeaff0a.tar.gz decky-loader-518b01f5714703fbe788e24a04d29058afeaff0a.zip | |
Installing from plugin store now works as intended
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/browser.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/browser.py b/backend/browser.py index 1e8c8d27..f2325aff 100644 --- a/backend/browser.py +++ b/backend/browser.py @@ -42,10 +42,10 @@ class PluginBrowser: async def _install(self, name, version, hash): rmtree(path.join(self.plugin_path, name), ignore_errors=True) - self.log.info(f"Installing {artifact} (Version: {version})") + self.log.info(f"Installing {name} (Version: {version})") async with ClientSession() as client: - self.log.debug(f"Fetching {artifact}") - res = await client.get(artifact) + self.log.debug(f"Fetching {name}") + res = await client.get(name) if res.status == 200: self.log.debug("Got 200. Reading...") data = await res.read() @@ -61,9 +61,9 @@ class PluginBrowser: hash ) if ret: - self.log.info(f"Installed {artifact} (Version: {version})") + self.log.info(f"Installed {name} (Version: {version})") else: - self.log.fatal(f"SHA-256 Mismatch!!!! {artifact} (Version: {version})") + self.log.fatal(f"SHA-256 Mismatch!!!! {name} (Version: {version})") else: self.log.fatal(f"Could not fetch from URL. {await res.text()}") @@ -77,7 +77,7 @@ class PluginBrowser: async def request_plugin_install(self, name, version, hash): request_id = str(time()) - self.install_requests[request_id] = PluginInstallContext(artifact, version, hash) + self.install_requests[request_id] = PluginInstallContext(name, version, hash) tab = await get_tab("SP") await tab.open_websocket() await tab.evaluate_js(f"DeckyPluginLoader.addPluginInstallPrompt('{name}', '{version}', '{request_id}', '{hash}')") |
