Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] I have an MQA Fix! #442

Open
gibskeet opened this issue Aug 26, 2020 · 31 comments
Open

[FEATURE] I have an MQA Fix! #442

gibskeet opened this issue Aug 26, 2020 · 31 comments

Comments

@gibskeet
Copy link

Which tool
Tidal-DL

Which feature
MQA Fix on your website/easier way to Obtain Key

Description
Ok so after Testing i found a way to get MQA working for me. If you dont know how to get your access token (its explained very bad on the site) ill tell you here.

  1. Reinstall Tidal-DL once and get the newest version from the repo.
    idk how important this step is but i did it sooo...

  2. Before adding all your login info you have to get the 0auth key aka the access token
    Dont use Charles as it is old af. I used Fiddler 4 it worked like a charm.

  3. Finding your Key
    -Log out of your Tidal App on your PC and close it.
    -Open Fiddler and Navigate to Tools > Options > HTTPS
    -Select the Option to decrypt HTTPS Traffic and install the certificate
    -Open the Tidal App and Log in
    -On Fiddler you should search for Tidal accessing the url /0auth/...
    -Press on it and there is your Access token.

So after getting this now my personal fix was to completely wipe Tidal-DL and give him a new 0Auth code with this Method.

This is the Information that Foobar2000 gives me:

foobar2000_HSefAaQ9ds
foobar2000_taKIwdFqcN

24 Bit MQA Encoded FLAC

@Human-Hamster
Copy link

Can confirm this works for me. Though, it seems pointless as you can't unfold the MQA in foobar?

@gibskeet
Copy link
Author

Can confirm this works for me. Though, it seems pointless as you can't unfold the MQA in foobar?

Use qobuz and QBDLX then. It can DL in 192Khz Flawlessly. Tidal is fishy in general i checked a few albums and some of them are in fact completely Upscaled.

@zacharyllewellyn
Copy link

Thanks it does work!
copy the token then open tidal dl and then you only paste it

@amiles5
Copy link

amiles5 commented Aug 28, 2020

Installed anew on Raspberry pi - version v2020.8.24.0 and it works for MQA.

@muttymeme
Copy link

muttymeme commented Aug 28, 2020

Can confirm this works for me. Though, it seems pointless as you can't unfold the MQA in foobar?

Use qobuz and QBDLX then. It can DL in 192Khz Flawlessly. Tidal is fishy in general i checked a few albums and some of them are in fact completely Upscaled.

Although I do not not disagree that there is something fishy about some of the 'master' recordings I would like to know how you came to the conclusion that they were up-scaled. How did you manage that ? I am curious and would like to know more, if you would like to share. I was under the impression that they were just badly mastered for digital or just plain badly engineered.

@gibskeet
Copy link
Author

Simple. You can use a simple tool called Lossless Audio Checker. It will scan the FLAC file and tell you with what probabilty it is upscaled. Of course there can be mistakes but if a whole Album is being scanned and its upscaled u know something is up.

@zacharyllewellyn
Copy link

Simple. You can use a simple tool called Lossless Audio Checker. It will scan the FLAC file and tell you with what probabilty it is upscaled. Of course there can be mistakes but if a whole Album is being scanned and its upscaled u know something is up.

Thanks for the info I'll check that out!

@Zyrafu
Copy link

Zyrafu commented Aug 28, 2020

-Press on it and there is your Access token.

Which part is actually the token?

@gibskeet
Copy link
Author

The really long part where it says 0auth something

@gibskeet
Copy link
Author

Simple. You can use a simple tool called Lossless Audio Checker. It will scan the FLAC file and tell you with what probabilty it is upscaled. Of course there can be mistakes but if a whole Album is being scanned and its upscaled u know something is up.

Thanks for the info I'll check that out!

If you want an example file check out Banditorhino by Luciano which is available for 24bit streaming on Tidal. If you check qobuz (they always have the highest available) you will find that it is only available in 16 bit. Download em both and check em. The Tidal 24 bit files will be upscaled.

@zacharyllewellyn
Copy link

The really long part where it says 0auth something

Look out for 0auth and you will see a access token

@vad62
Copy link

vad62 commented Aug 30, 2020

The token appears in several places and everywhere this token is accepted, but the Master is not downloaded. It is not clear where exactly the token should be taken from! Help me to understand!

@tidalmuse
Copy link

The token appears in several places and everywhere this token is accepted, but the Master is not downloaded. It is not clear where exactly the token should be taken from! Help me to understand!

click in the api event in the left and In the right menu under headers in the Miscellaneous u can see authorization: Bearer XXXXXXXXXXXXXXX(long string)
copy this entire character string starting from Bearer until the end, close the fiddler and paste it in the tidal-dl...

@vad62
Copy link

vad62 commented Aug 30, 2020

I just inserted it. And according to this method and from the Android application, the token is accepted by the application, but the Master is not downloaded, only the redbook 16 / 44.1
What is wrong, I cannot understand.

@satsurfer
Copy link

Can confirm this works for me. Though, it seems pointless as you can't unfold the MQA in foobar?

[http://www.pureaudiolab.com/assets/files/Configuring%20Foobar2000%20For%20DSD%20and%20MQA%20Playback%20V1.0.pdf]
I have a Dragonfly RED, and it turns to purple, playing an MQA file.

@qduaty
Copy link

qduaty commented Sep 5, 2020

Can confirm this works for me. Though, it seems pointless as you can't unfold the MQA in foobar?

There are other players than foobar, some of which can unfold MQA (such as UAPP).

@satsurfer
Copy link

satsurfer commented Sep 5, 2020

Can confirm this works for me. Though, it seems pointless as you can't unfold the MQA in foobar?

There are other players than foobar, some of which can unfold MQA (such as UAPP).

that's for smartphone. I know that. My LG phones have 32 bit DAC with MQA support. But point is Tidal DL has to implement the MQA in the file, otherwise pointless, even with an MQA device.

@leunamemar
Copy link

Thanks!! works like charm!

@watchd0gg
Copy link

They release a new version, and I, like a fool update my app, this doesn't work anymore.. When you open Fiddler, automatically the app hasn't conectivity anymore..

imagen

So this repo might be monitored by Tidal Engineers, hi there !

@BlindTango
Copy link

BlindTango commented Oct 1, 2020 via email

@neaumusic
Copy link
Contributor

this worked for me, logging in showed the access and refresh tokens. currently looking at sox to upsample the mqa

@rockstar2020
Copy link

@neaumusic, I know this is an old post but can you confirm how you get the refresh token?
I was able to get the Access Token from Fiddler and can successfully download Master Quality.
However, I don't know where I can find access token from Fiddler logs.
Any help would be highly appreciated.

@amiles5
Copy link

amiles5 commented Dec 3, 2023

The process using fiddler logs has been outdated some time. I use option 7 and the select an api from the list and then it presents a url for authentication with your account name & password. After that it automatically refreshes the token every time you run the app. ( I'm not sure this is documented anywhere :-(

@rockstar2020
Copy link

Thanks @amiles5 for your reply.
The thing is that the highest quality I can download with option 7 is 44/16.
I could successfully use Fiddler to optain access token and downlaod at 24bit quality with bitrates around 2.5mbps which sounds way better than 16bit format with bitrates around 900kbps.
Can you confirm what maximum quality of download you get if you choose Master quality?

@amiles5
Copy link

amiles5 commented Dec 3, 2023

I get 192kHz 24bit on Roon from a Master Qualty download ??:-

"KEF LS50 Wireless I|
Roon Advanced Audio Transport
KEF Music Integrity Engine
Phase correction
Wired connection
192kHz 24bit with MQA signaling
MQA renderer"

However I can't find any FLAC @ 24bit without MQA.

@rockstar2020
Copy link

Thanks @amiles5 I'm using Plex as media server and WiiM as player which can play up to 192/24 with MQA support.
I can download 24bit with the token I could find via Fiddler but I don't think it'll get automatically refreshed from within Tidal-dl.
I was never able to download anything higher than 44/16 when using built-in Tidal-dl authentication.
Of course as you said, I also can find 24bit with MQA.

@rockstar2020
Copy link

@neaumusic, thanks for your reply.
I've never used Charles but is there any way to find the refresh token as well?
Right now my goal is to find both Access Token and Refresh Token.
Fiddler only gives me Access Token. At least that's what I could find.

@rockstar2020
Copy link

the MQA files look like 48/24 files iirc, they need to be unfolded to 96 or 192 etc

That's correct.
This is what WiiM player is suppoed to do.
But first thing foremost I should be able to download the MQA files.

@neaumusic
Copy link
Contributor

Yes I vaguely remember using Charles because of that same issue, I'd give it a try if you can

@rockstar2020
Copy link

Yes I vaguely remember using Charles because of that same issue, I'd give it a try if you can

I'll give it a try, but first look it's a bit more complicated than Fiddler. I have to spend some time on it.
Thanks anyways

@rockstar2020
Copy link

OK, after spending several hours I finally could find the Oauth2 response where both Access Token and Refresh Token were there.
Now if I use tidal-dl and select "Set Access Token" and then enter both tokens respectively, I'm able to download the highest Master Quality.
But when I select option "1" which is "Check AccessToken", I get: [INFO] AccessToken good for unknown.
Even if I manually enter "Access Token" and "Refresh Token" in tidal_session.json file, I still don't get the expiry date of my token.
I don't think my token will get automatically refreshed for this reason.

Am I following the right process to manually enter the tokens in tidal-dl?

FYI, below is partially what I'm getting in the Oauth2 response payload:

"clientName": "Tidal Desktop Player - HiRes",
"token_type": "Bearer",
"access_token": "xxxxxxxxxxxxxMy-Access-Tokenxxxxxxxxxxxxxxxxxx",
"refresh_token": "yyyyyyyyyyyMy-Refresh-Tokenyyyyyyyyyyyyyyy",
"expires_in": 86400,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests