Trial to add support to tidal playback to Openhab house automation system,
Closed this issue · 2 comments
Hello,
I'm currently give a try to implement Tidal support on Openhab house automation system.
I've get some inspiration from the code of your library to get the Stream url for a track.
The matter is that when I use my Own clientId/clientSecret, I always get PREVIEW stream in low Mp3 quality, and limited to 30s.
If I use the client_id_pkce / client_secret_pkce coming from your application, then everything is working as excpected.
Did I understand it correctly if I say that client_id_pkce / client_secret_pkce is specific id/secret link to specific account.
And that it will only work with this account, and not with any other clientId/clientSecret ?
Or did I miss something else.
Thanks,
Laurent.
Hello
Are you implementing it from scratch or do you rely on python-tidal behind the scenes? If the latter is the case, I suggest you include a snippet / example of what you are trying to do do.
The secret is not unique for your account but has been extracted from the official apps. So a certain client_id must be used, otherwise you will not get more than PREVIEW streams. AFAIK, there are other client IDs available but they will not all work if using PKCE. Nevertheless, using PKCE is not required, as OAUTH will also work fine.
A good place to get started wrt. the oauth/pkce login flow is to look in the examples, as this will tell you all you need to know to perform login: https://github.com/EbbLabs/python-tidal/blob/main/examples/pkce_example.py
I've made my own code on my side in Java, using Oauth with and without PKCE.
I think the point is there "a certain client_id must be used, otherwise you will not get more than PREVIEW streams".
This is exactly what I've experienced.
I'm not confortable on my side to include a clientId that come from the official application.
So will certainly wait that tidal position evolve on the subject to allow full playback in their SDK.
Thanks,
Laurent.