02.5.2025, 10:17
(Tento příspěvek byl naposledy změněn: 02.5.2025, 10:19 uživatelem norberto_.)
(26.4.2025, 1:30)zdeno Napsal(a):I have decoded with jwt.io but it looks it does not have the same secret as the oauth at first look.(14.4.2025, 13:57)norberto_ Napsal(a): Hi, sorry for using english.Do you have any public repository? The problem with oAuth is you have to periodically check the expiration date of the stored token and refresh it before expiration or user have to login again.
There is a chance always. :-) in fact i am working on it slowly. I am able to log in and get the details with python now.
The problem is the old authentication was based on OAUTH. that has been replaced with SSO.
I guess we are in the period where existing session data will work for some time.
the new session data uses token, ssoToken not the old style secret.
This means all functions of the script need to be modified/rewritten.
Neni tu nekdo kdo by vzal data ze sve session a porovnal je s daty co jsou v tokenu? https://jwt.io/ takze bychom se asi mohli jen prihlasit pres oAuth a zbyvajici casti kodu by se daly vyuzit - tedy paklize je v tokenu id a secret. Nicmene stale bych to videl jako docasne reseni. Pokud existuje nova authorizace tak starou nechavaji otazkou pro koho hlavne kdyz API je vlastne postavene pro iphone.
Pokud se data z JWTcka nedaji pouzit tak bude nutne vse prepsat pres auth Bearer tj vcetne novych api. Tj napr epg se bude tahat tak ze se nejdrive clovek podiva na
tvapi.solocoo.tv//v1/bouquet vytahne kolekci channels a nasledne pres /v1/schedule?channels=<channel>&from=<from>&until=<to> pripadne /now si vytahnout data.
I have written already the functions in python to login, register device, get SSo token, get channel list, epg etc. via this sso based flow same as in a browser. when i have time i will try to actually create an addon or change the functions in the existing and then i will try to play an actual channel.
