It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
All the edit did for me was permanently make it so it closed itself, then said "Offline". The more complicated suggestion doesn't even make sense to me since it looks like deleting a bunch of lines? I don't know what I'm doing so I'm not going to touch that. And also since I have no idea what I'm doing I don't know how to change it back to try the new back arrow method. Sigh.

Any suggestions? I was really excited to see all my games in one place but I guess that is still a pipe dream in 2023.

EDIT: Somehow I got it to work. No idea. I was able to change it successfully back to the original AUTH_PARAMS. Same errors. Tried the back arrow, nothing worked. I look through more comments, see the person that said "add .py back after using notepad". I did NOT do this. But I take one last swing at the basic editing given before. I typed it in, copy/pasted the code from that playstation address, hit save, forgot to add the .py and just opened it up and tried again and.... I hit connect and it just immediately connected, didn't even ask for my password this time. I have no idea, maybe I mistyped, maybe the back arrow worked in the background somehow.... I have no idea. But it did work.

Now if we could just get Switch games on here...
Post edited January 12, 2023 by justindt
avatar
justindt: Now if we could just get Switch games on here...
We already have a working Integration for the Yuzu emulator but at the moment isn't possible to import all your real switch library even on playnite, since we don't have a documented API at all: we can only get purchased games from the past two years on there.
avatar
pippo-san: There is a pull request about gaining the recently played games on github.

As for the Thropy retrieval is in the works (not by me), just be patient.
Very nice! Eagerly waiting to get the trophies synced to gog galaxy.

How is it that a site like Exophase.com can get the playtime and trophies from my PSN account with only my PSN name while the gog plugin cant get it even with a login?

(Sorry if already answered - I'm just new to this thread and didn't read through all of it)
Post edited January 15, 2023 by givos
avatar
pippo-san: Now, for some reason, the guys at playnite are having the same issue, and they discovered that pressing "Trouble with login?" and then pressing the arrow button (previous page), will allow you to continue with the login, even with two-step autentication.

The long used method of gaining the npsso key is no longer needed, but if you are still having issues you can go with the old one ;)

source: https://github.com/XenorPLxx/playnite-library-psn/issues/5#issuecomment-1268745292
This works like a charm! Thanks! :)
avatar
tszcheetah: To use the browser work-around with the current version of the plugin (0.34):

1. Quit GOG Galaxy completely.

2. In your browser log in at store.playstation.com, then go to https://ca.account.sony.com/api/v1/ssocookie and copy the npsso value.

3. Open C:\Users\<username\AppData\Local\GOG.com\Galaxy\plugins\installed\psn_<guid>\plugin.py in a text editor.

4. Replace line 52 ("return NextStep("web_session", AUTH_PARAMS)" with the following line (make sure to get the indentation correct: there's 12 spaces in front of the line):

stored_cookies = {"npsso": "<paste npsso value from browser here>"}

This line follows the "if not stored_cookies:" line on line 51

5. Save the file, restart Galaxy

6. Go to the settings and reconnect the PSN plugin
avatar
DarkOnigiri: I followed this, changing a little the step 4:
async def authenticate(self, stored_credentials=None):
stored_cookies = {"npsso":"npsso from step 2"}
auth_info = await self._do_auth(stored_cookies)
return auth_info

And worked... I'm using GOG 2.0.51.86 with PlayStation 0.35.
Incredible! After like a year of my PSN not connecting to my GOG, this one solved it. Thanks a lot!
I've tried the method from previous post, but it's not working. Is there any other reason, PSN is offline?
avatar
lysy231: I've tried the method from previous post, but it's not working. Is there any other reason, PSN is offline?
I got it working with that method but it was on line 51 vs 52.
avatar
DarkOnigiri: I followed this, changing a little the step 4:
async def authenticate(self, stored_credentials=None):
stored_cookies = {"npsso":"npsso from step 2"}
auth_info = await self._do_auth(stored_cookies)
return auth_info

And worked... I'm using GOG 2.0.51.86 with PlayStation 0.35.
avatar
trissbestgril: Incredible! After like a year of my PSN not connecting to my GOG, this one solved it. Thanks a lot!
I followed all of it exactly and now it just keeps telling me the plugin has crashed.
avatar
tszcheetah: To use the browser work-around with the current version of the plugin (0.34):

1. Quit GOG Galaxy completely.

2. In your browser log in at store.playstation.com, then go to https://ca.account.sony.com/api/v1/ssocookie and copy the npsso value.

3. Open C:\Users\<username\AppData\Local\GOG.com\Galaxy\plugins\installed\psn_<guid>\plugin.py in a text editor.

4. Replace line 52 ("return NextStep("web_session", AUTH_PARAMS)" with the following line (make sure to get the indentation correct: there's 12 spaces in front of the line):

stored_cookies = {"npsso": "<paste npsso value from browser here>"}

This line follows the "if not stored_cookies:" line on line 51

5. Save the file, restart Galaxy

6. Go to the settings and reconnect the PSN plugin
Maybe it will help Mac OS users:

The equivalent of Step 3 on Mac OS will be:
/Users/<username>/Library/Application Support/GOG.com/Galaxy/plugins/installed/psn_<guid>/plugin.py

But unfortunately, the workaround does not work for me.
Post edited March 07, 2023 by brainsolid
Does this trick still work for others? I can't get it to work for some reason. I don't think my PSN plugin has worked since PlayStation made the change to their PS+ models like, last summer? Kinda frustrating.

Edit:
After having tried several times over the last week, it finally decided to work 10 minutes after making this post haha, wow. Next up, trying to fix my Humble Bundle plugin >_>
Post edited March 09, 2023 by Korlian
avatar
DarkOnigiri: I followed this, changing a little the step 4:
async def authenticate(self, stored_credentials=None):
stored_cookies = {"npsso":"npsso from step 2"}
auth_info = await self._do_auth(stored_cookies)
return auth_info

And worked... I'm using GOG 2.0.51.86 with PlayStation 0.35.
avatar
trissbestgril: Incredible! After like a year of my PSN not connecting to my GOG, this one solved it. Thanks a lot!
Same here! Worked like a charm! Thank you! :)
avatar
trissbestgril: Incredible! After like a year of my PSN not connecting to my GOG, this one solved it. Thanks a lot!
avatar
avizion: Same here! Worked like a charm! Thank you! :)
Can you copy/paste the whole block of code? I still not fully understand how this 2nd solution should looks like compared to 1st one.
Tried all 3 different methods, no matter what it will always say Offline.
Attachments:
avatar
tszcheetah: To use the browser work-around with the current version of the plugin (0.34):

1. Quit GOG Galaxy completely.

2. In your browser log in at store.playstation.com, then go to https://ca.account.sony.com/api/v1/ssocookie and copy the npsso value.

3. Open C:\Users\<username\AppData\Local\GOG.com\Galaxy\plugins\installed\psn_<guid>\plugin.py in a text editor.

4. Replace line 52 ("return NextStep("web_session", AUTH_PARAMS)" with the following line (make sure to get the indentation correct: there's 12 spaces in front of the line):

stored_cookies = {"npsso": "<paste npsso value from browser here>"}

This line follows the "if not stored_cookies:" line on line 51

5. Save the file, restart Galaxy

6. Go to the settings and reconnect the PSN plugin
avatar
DarkOnigiri: I followed this, changing a little the step 4:
async def authenticate(self, stored_credentials=None):
stored_cookies = {"npsso":"npsso from step 2"}
auth_info = await self._do_auth(stored_cookies)
return auth_info

And worked... I'm using GOG 2.0.51.86 with PlayStation 0.35.
ok maybe i'm stupid but can you explain exactly where and how to set this up like idk copy and paste what the lines of code are supposed to look like then tell me where i can't figure out where everything goes
avatar
tszcheetah: To use the browser work-around with the current version of the plugin (0.34):

1. Quit GOG Galaxy completely.

2. In your browser log in at store.playstation.com, then go to https://ca.account.sony.com/api/v1/ssocookie and copy the npsso value.

3. Open C:\Users\<username\AppData\Local\GOG.com\Galaxy\plugins\installed\psn_<guid>\plugin.py in a text editor.

4. Replace line 52 ("return NextStep("web_session", AUTH_PARAMS)" with the following line (make sure to get the indentation correct: there's 12 spaces in front of the line):

stored_cookies = {"npsso": "<paste npsso value from browser here>"}

This line follows the "if not stored_cookies:" line on line 51

5. Save the file, restart Galaxy

6. Go to the settings and reconnect the PSN plugin
Just tried this and it still works, you just need to disconnect an re-connect once or twice to get it to work.

This is the full block of code in plugin.py i am using now with Galaxy 2.0.64 latest version as of 23/05/2023 with plugin version 0.35.0.0

async def authenticate(self, stored_credentials=None):
stored_cookies = stored_credentials.get("cookies") if stored_credentials else None
if not stored_cookies:
stored_cookies = {"npsso": "HERECOMESTHATLONGSTRINGFROMTHATURL"}

auth_info = await self._do_auth(stored_cookies)
return auth_info