fixed oauth tokens for Tidal FLAC downloads - #1017
Conversation
|
Confirmed these credentials work — but the picture turns out to be more complicated than "these are the right ones", and I think it explains why people are reporting completely different results on this and on #998. Short version: Tidal grants different entitlements to different official clients, and neither of the two client ids in circulation is served everything. The one currently on All measurements below are on one Tidal account with a "Max" subscription, taken within a few minutes of each other, changing nothing but the client credentials. The two clients
Neither is strictly better. Swapping to this PR's credentials fixes the large majority of the catalogue and costs you 24-bit on the minority that has it. How to tell which releases are which
The second is the ordinary case. Tidal's own app badges it The measurementsSame track ( On On this PR's credentials: Downloaded and probed:
And the reverse, on a release tagged
On this PR's credentials every request returns Why people are reporting different things
That last row is worth noting: applying both PRs disables the hi-res path, because these credentials are never given a DASH manifest. So "#998 doesn't work for me" and "#998 works for me" can both be true depending on whether #1017 is also applied and which releases were tested. Scale of itAcross 90 Tidal tracks in one library, all downloaded with #998 applied and What I ended up doingLocally, using both: ask the hi-res client first, and if the manifest it returns is lossy, ask the other client before settling for it. Releases with a hi-res master keep the DASH path at 24-bit, and everything else arrives as 16/44.1 FLAC instead of AAC. The choice is made from the manifest actually returned rather than predicted in advance, so it adapts if Tidal changes what it serves. The cost is that tokens are issued per client, so it needs a second authorisation of the same account — same subscription, effectively a second device — and a second token set in the config. I ran both clients concurrently, including simultaneous downloads, without Tidal refusing either. I am happy to open that as a PR if it is useful, though it is obviously more involved than swapping two constants, and it would sit better on top of whichever of these lands first. The open questionTidal's own app plainly gets both: it shows Does anyone know of a client id already in circulation that is served both? If so, this collapses to a one-line change and none of the two-client juggling is needed. That would be much better than what I have locally, and I would rather ask than assume the two ids we have are the only ones people know about. |
Solves #966