2019-12-27, 19:25
(2019-12-27, 00:14)snoopyjoe Wrote: @clones Yes. Here is everything that gets updated every time the addon attempts to logs in and reauthorize...@snoopyjoe As I looked for 'my device id' and 'my grant code' I have found under response I am getting 'failed to load response date' under the ssocookie, but as I look under headers there is 'client id' so I'm assuming this is my device id, and 'session id' would this be the Grant Code? Thanks again for all your thoughts , I feeling like I am pushing my knowledge level envelope.
- "abck_" :https://auth.api.sonyentertainmentnetwork.com/2.0/ssocookie
- "npsso" :https://auth.api.sonyentertainmentnetwork.com/2.0/ssocookie
- "bm_sz" :https://auth.api.sonyentertainmentnetwork.com/2.0/ssocookie
- "grant code" :https://sentv-user-auth.totsuko.tv/sentv_user_auth/ws/auth2/token?device_type_id=web3-w&device_id=YOUR DEVICE ID&code=YOUR GRANT CODE&....> Under "response"
- "reqPayload" :https://sentv-user-auth.totsuko.tv/sentv_user_auth/ws/auth2/token?device_type_id=web3-w&device_id=YOUR DEVICE ID&code=YOUR GRANT CODE&....> Under "cookies"
- "last_auth" :https://sentv-user-auth.totsuko.tv/sentv_user_auth/ws/auth2/token?device_type_id=web3-w&device_id=YOUR DEVICE ID&code=YOUR GRANT CODE&....> Under "Response-->headers-->time_stamp"
- "profile_id" :https://sentv-user-ext.totsuko.tv/sentv_user_ext/ws/v2/profile/ids
- "EPGreqPayload" : https://sentv-user-ext.totsuko.tv/sentv_...2/profile/YOUR PROFILE ID> Under "Headers-->reqPayload"
Of course after logging in on the website, update the the cookie file with the new abck_ and bm_sz and expiration date. I'd changed the year on my expiration to 2020 to prevent further login attempts. Next in the settings.xml file update the npsso, your profile_id, reqpayload, EPGreqPayload and last_auth. Again I also changed the year on the last_auth to 2020 to prevent further login attempts. The grant code will go in the sony.py file on line 226 (under authorize_device) depending on which addon version you're still using. The line looks like this..."url += '&code=' + self.get_grant_code()" and must be changed to "url += '&code=YOUR GRANT CODE'. Also in the sony.py file on line 32 (under check_auth), comment out or remove the line "self.check_login()"
Finally, in the psvue.py file on line 672 add lines "sony = SONY()" and "sony.authorize_device()". It should be the first line under the "get_stream()" function. This will reauthorize your device and update the EPGreqPayload every time you play a video. The EPGreqPayload is only valid for 24hr and needs to be updated accordingly.
All of this will prevent the addon from trying to login since it will already have valid login credentials but allow it to reauthorize when trying to play a stream. I hope this helps any users still wanting to use their PSvue access on Kodi to the very end like myself.