Skip to content

Commit

Permalink
Update backend_steam_network.py
Browse files Browse the repository at this point in the history
Reworked Steam integration for new API backend
  • Loading branch information
lonewolf0708 committed Oct 9, 2023
1 parent 2800916 commit 766dd51
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/backend_steam_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,12 @@ def tick(self):
async def _get_websocket_auth_step(self):
try:
result = await asyncio.wait_for(
self._websocket_client.communication_queues["plugin"].get(), 60
self._websocket_client.communication_queues["plugin"].get(), 20
)
return result["auth_result"]
except asyncio.TimeoutError:
raise BackendTimeout()
return UserActionRequired.NoActionRequired
#raise BackendTimeout()

async def pass_login_credentials(self, step, credentials, cookies):
if "login_finished" in credentials["end_uri"]:
Expand Down Expand Up @@ -241,7 +242,8 @@ async def _handle_two_step(self, params, fail, finish):
else:
self._auth_data = None
self._store_credentials(self._user_info_cache.to_dict())
return await self._check_public_profile()
#return await self._check_public_profile()
return Authentication(self._user_info_cache.steam_id, self._user_info_cache.persona_name)

async def _handle_two_step_mobile_finished(self, credentials):
parsed_url = parse.urlsplit(credentials["end_uri"])
Expand Down

1 comment on commit 766dd51

@lutzd
Copy link

@lutzd lutzd commented on 766dd51 Mar 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hallo my Dear, your forkit works for me. However a moment of pain was when pop up
an error to prevent reading privacy properties from steam server,
But skipping let my GOG Galaxy Import all Steam Games.
Thnak you ...

ScreenShot_0001

Please sign in to comment.