Return Ĭreate_and_run_plugin(PSNPlugin, sys. Return NextStep("web_session", AUTH_PARAMS)Īuth_info = await self._do_auth(stored_cookies)Īsync def pass_login_credentials(self, step, credentials, cookies):Ĭookies =. Stored_cookies = stored_credentials.get("cookies") if stored_credentials else None Return Authentication(user_id=user_id, user_name=user_name)Īsync def authenticate(self, stored_credentials=None): User_id, user_name = await self._psn_client.async_get_own_user_info() Self._http_client.update_cookies(cookies)Īwait self._http_client.refresh_cookies() Self._http_t_cookies_updated_callback(self._update_stored_cookies) Tracking statistics requires that you be connected to the. Also make sure you have an uninterrupted connection to the Internet and that GOG GALAXY runs in the background while you play the game. For the statistics tracking to work properly, you must launch the game directly from GOG GALAXY. Logging.getLogger("urllib3").setLevel(logging.FATAL) My playtime and other stats are not being saved. Self._psn_client = PSNClient(self._http_client) Super()._init_(Platform.Psn, _version_, reader, writer, token) "end_uri_regex": "^" + OAUTH_LOGIN_REDIRECT_URL + ".*"ĭef _init_(self, reader, writer, token): "window_title": "Login to My PlayStation\u2122", This is the log in case it is needed import sysįrom typing import List, Any, AsyncGeneratorįrom import Platform, LicenseTypeįrom import InvalidCredentialsįrom import Plugin, create_and_run_pluginįrom import Authentication, Game, NextStep, SubscriptionGame, \įrom http_client import OAUTH_LOGIN_URL, OAUTH_LOGIN_REDIRECT_URL If you have any solutions or know how to solve this please help me, thanks in advance. I will provide the code that I have which is the one the app installed by default. I have been trying to connect my PSN account to Galaxy 2.0 for a while now and it keeps telling me that it's (offline), I have tried the solutions that come up first on a google search and they didn't work for me.Īll the solutions I found have a different code (I don't have it) than the one the app installs by default or the one I can find on Github.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |