yaronzz / Tidal-Media-Downloader

Download 'TIDAL' Music On Windows/Linux/MacOs (PYTHON/C#)
http://doc.yaronzz.com/post/tidal_dl_installation/
Apache License 2.0
3.27k stars 464 forks source link

Tidal-dl on Android #1120

Open Notorious2Beat opened 7 months ago

Notorious2Beat commented 7 months ago

Which tool

Tidal-dl

Describe your question

Will Tidal-dl get updated to download hi-res files without using the pc token? USB Audio player pro music app now plays hi-res files somehow.

Add screenshots

No response

ebb-earl-co commented 7 months ago

I don't think that this will happen any time soon. If you look at Tidal's supported devices for HiRes FLAC, you've got to get the token from: iOS, Android, Windows, MacOS. This repository focuses on the OAUTH2 flow for e.g. TVs that don't have the option of app architecture like the aforementioned.

ladle3000 commented 7 months ago

I don't think that this will happen any time soon. If you look at Tidal's supported devices for HiRes FLAC, you've got to get the token from: iOS, Android, Windows, MacOS. This repository focuses on the OAUTH2 flow for e.g. TVs that don't have the option of app architecture like the aforementioned.

Appreciate this comment for clarifying why the pc token is necessary. I still don't understand why the Auth bearer from the official Android app doesnt work with tidal-dl. Beggars can't be choosers, but it is a pain to grab a pc token every time to dl hires.

I wonder if they add auto to list of supported hires devices if this will work for tidal-dl automatically.

In the meantime if you know of a way to make the android bearer work, would be much appreciated. Maybe it needs appended or prepended by something?

ebb-earl-co commented 7 months ago

No, the token from Android definitely does work. It's just that the default flow in tidal-dl with the Fire TV or Android Auto "spoofing" won't get you HiRes. Android auth bearer token or Windows or MacOS or iPhone will be able to access HiRes.

ladle3000 commented 7 months ago

No, the token from Android definitely does work. It's just that the default flow in tidal-dl with the Fire TV or Android Auto "spoofing" won't get you HiRes. Android auth bearer token or Windows or MacOS or iPhone will be able to access HiRes.

This has not been my experience. Only the windows Auth bearer gets the hires for me.

I tried several times the past few months using the Auth bearer from the Android app and it would not work. Plus now I'm on android 13 and can't even access android/data folder anymore.

ladle3000 commented 7 months ago

@Notorious2Beat remember that uapp doesn't have download permissions though.

ebb-earl-co commented 7 months ago

No, the token from Android definitely does work. It's just that the default flow in tidal-dl with the Fire TV or Android Auto "spoofing" won't get you HiRes. Android auth bearer token or Windows or MacOS or iPhone will be able to access HiRes.

This has not been my experience. Only the windows Auth bearer gets the hires for me.

I tried several times the past few months using the Auth bearer from the Android app and it would not work. Plus now I'm on android 13 and can't even access android/data folder anymore.

interesting. What device are you using? I’ve got a Pixel 4a (5G) running Graphene OS

ladle3000 commented 7 months ago

No, the token from Android definitely does work. It's just that the default flow in tidal-dl with the Fire TV or Android Auto "spoofing" won't get you HiRes. Android auth bearer token or Windows or MacOS or iPhone will be able to access HiRes.

This has not been my experience. Only the windows Auth bearer gets the hires for me.

I tried several times the past few months using the Auth bearer from the Android app and it would not work. Plus now I'm on android 13 and can't even access android/data folder anymore.

interesting. What device are you using? I’ve got a Pixel 4a (5G) running Graphene OS

I'm on pixel 7, and was previously on stock android 14 beta. Somehow I was able to get to android > data > com.aspiro.tidal in solid explorer and find the bearer, but it would never work as I mentioned before.

I switched my phone back to stable 14 and now I can see com.aspiro.tidal - but can't go any further because of the permissions.

I've found 2 workarounds to get into android data online:

  1. Using the native hidden android Files app by downloading the shortcut app that opens it in playstore.

  2. Using shizuku with FV File Explorer.

Both of these let me into android data files but with these com.aspiro.tidal is not visible. Which is weird, because it is visible in solid Explorer, but not accessible. I would think if inaccessible, it would be hidden everywhere.

So now I'm trying to decide if rooting is worth it or not. Most likely I'll root my old P3, but still have never seen the Android auth bearer work.

I do wish also there was a way, when using a hires_lossless key to grab only lossless when mqa is the highest quality. Know of a way? So I can download a whole artist link at once on highest setting, but not grab any mqa.

ladle3000 commented 7 months ago

Also, I was able to get an Auth bearer from my pixel 3 just now. It does accept the key actually, the problem is that I get a dash-xml stream error when trying to use an android key.

I've tried with a fresh config json file and same outcome

ebb-earl-co commented 6 months ago

@ladle3000 That makes sense: this project doesn't handle that. I've worked the last few weeks to create a replacement for this project, and it's almost ready on GitHub. I could make a pull request to this project, but it seems easier to make something new for people to use.

EDIT: I've got the first version available on GitHub.