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.42k stars 474 forks source link

[BUG] ERROR: Device authorization failed. Please try again #721

Closed bvdgrift closed 2 years ago

bvdgrift commented 2 years ago

Which tool

tidal-dl

Version

v2021.11.17.1

Platform

Linux

Bug description

When I start the application I get [ERR] Device authorization failed. Please try again. Option 3 - Logout doesn't help, keep getting the same error.

*Screenshot Image 18-11-2021 at 16 59 *

iMusicDorian commented 2 years ago

I have this problem too, and tidal-gui cannot show the device code.(My OS is Windows)

etychon commented 2 years ago

Ditto here - not helpful but good to know I'm not alone! Deleting the token does not help neither.

adamsp70 commented 2 years ago

Don't think it's a bug.

Looks like Tidal now (since the 17th Nov) only allows downloads to authenticated devices - which can only be those running the mobile app.

https://support.tidal.com/hc/en-us/articles/115005871525-Authorize-a-device

Hoping there's a way round this!

apoplol commented 2 years ago

Re-entering my token and trying to input an album gives me the following error: [ERR] countryCode parameter missing

Better than an auth failure right?

spenser2002 commented 2 years ago

Do you think that yaronzz will fix this problem?

regendier commented 2 years ago

i think it will be difficult this time, i am not happy at all

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virusvrij. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Thu, Nov 18, 2021 at 6:00 PM spenser2002 @.***> wrote:

Do you think that yaronzz will fix this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yaronzz/Tidal-Media-Downloader/issues/721#issuecomment-973059024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ2LHW4M2SHUWOVLSM3YYATUMUWK5ANCNFSM5IJ7IGJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

spenser2002 commented 2 years ago

any other application I can use instead of this?

harshaxvarthan commented 2 years ago

Don't think it's a bug.

Looks like Tidal now (since the 17th Nov) only allows downloads to authenticated devices - which can only be those running the mobile app.

https://support.tidal.com/hc/en-us/articles/115005871525-Authorize-a-device

Hoping there's a way round this!

Ig it could be spoofed

DreamerSSDGang commented 2 years ago

This is bull shyt how do we support the development so the project keep moving forward 🤔

Jazdzor commented 2 years ago

Maybe some fix via bluestacks, or other thing?

DillFletch commented 2 years ago

I've just started paying for tidal and if this is how they are going I'm not paying anymore! It seems there is now reliable way to get flac files anymore...

danielrie commented 2 years ago

Still be able to receive the track manifest with an android token - only the authentication script needs to be updated Screenshot 2021-11-18 at 19 12 03 d

Mr-Negative commented 2 years ago

It seems like they maybe removed also client that is used {"status":401,"error":"invalid_client","error_description":"Client with token aR7gUaTK1ihpXOEP not found","sub_status":1005} Listening to traffic made this error so fire stick. How clientSecret for this stick was obtained? Was it leak or by sniffing?

deton24 commented 2 years ago

Pinging our master @yaronzz when he won't be busy.

Mr-Negative commented 2 years ago

Still be able to receive the track manifest with an android token - only the authentication script needs to be updated !

Are you able to sniff clientId and clientSecret of your phone? it is used in /device_authorization requests and /token so every time you log in

authorizing using Tidal.app desktop one so its important now to get token from device that can store data, like android phone 'authorizedForOffline': False, 'authorizedForOfflineDate': None

They changed also resp.manifestMimeType: from vnd.tidal.bt to application/dash+xml for some formats and because of it manifest = json.loads(base64.b64decode(resp.manifest).decode('utf-8')) need to be changed to xml one

urls for part changed but there is clear pattern name already in xml $Number$.mp4? but download needs to be updated.

So long story short maybe it will be updated, decoding file seem to be biggest issue

p2mgrup commented 2 years ago

Is there is any chance to fix problem with auth? Thank you! ;)

Benmusar commented 2 years ago

Same over here: image

timholl commented 2 years ago

Looks like Tidal now (since the 17th Nov) only allows downloads to authenticated devices - which can only be those running the mobile app.

That is probably irrelevant, as how the current downloading works is not "downloading" in Tidals terminology.

Are you able to sniff clientId and clientSecret of your phone?

As far as I understand tidal-dl retrieves its "Device Code" by presenting itself as an OAuth2 client using a clientId/clientSecret pair spoofed from a FireTV HD. The mobile and desktop applications probably will not take that path and instead log them in "directly" (since you do not have to "link" the application with a device code to link.tidal.com). So you will not be able to sniff the required information from a phone.

Tidal may have rotated the client secrets for FireTV HDs, so someone with said device would have to update the official Tidal app, then perform an OAuth2 login and meanwhile sniff the HTTPS-traffic, which would require to set up a HTTPS-MITM-proxy (like Charles Proxy or Fiddler) and only works if they do not use cert pinning. Instead of sniffing one could also try to decompile the app and extract the secrets, if they do not use obfuscation techniques.

Mr-Negative commented 2 years ago

Someone said in other hub thread that firetv app still works, but probably it would need to make to hand of persons who know what to do, and hope that they didnt patch drm on firetv too.

timholl commented 2 years ago

With the 2021.11.21.1 update (which basically updated the client id/secret), I can confirm it working as usual. Thanks @yaronzz !

owepia commented 2 years ago

Thank you for the 2021.11.21.1 update, Tidal-dl is working again!

Jazdzor commented 2 years ago

Do you have gui version? i cant find it:/

iMusicDorian commented 2 years ago

Do you have gui version? i cant find it:/

Here is the address: https://github.com/yaronzz/Tidal-Media-Downloader-PRO Though it seems tidal-gui still cannot work as its last update time is in Sep.

Gatu988 commented 2 years ago

Thank you for the 2021.11.21.1 update, Tidal-dl is working again How did you solve it friend for tidal d?

owepia commented 2 years ago

Tidal-dl is working but this message is displayed:

"[INFO] For some reasons, this version only supports LOSSLESS."

So, not able to download MQA at this time.

Stahlreich commented 2 years ago

On last version, v2021.11.30.1 on Linux, I get same problem. What I do: start playing music on Tidal through browser and in same time run tidal-dl. After few seconds I got access token.

kangur83 commented 2 years ago

On Last Version 2022.1.18.2 I get Error Device authorization failed. Please Try Again Later. How Can I Fix This Problem?

rospod commented 2 years ago

在上一个版本 2022.1.18.2 上,我收到错误设备授权失败。请稍后再试。我该如何解决这个问题?

So do I.

bogdescu commented 2 years ago

Same here. Both the mac command line and the WIndows GUI version stopped working .

serdnaserdna commented 2 years ago

Same here. It stopped working yesterday. :-(

morsik commented 2 years ago

Same here, Getting:

$ tidal-dl -l  https://listen.tidal.com/album/666
Starting login process...
[ERR] Device authorization failed. Please try again.
[INFO] Download path:/mnt/data/Music/
[ERR] countryCode parameter missing [https://listen.tidal.com/album/666]

But fixed by switching APIKey:

$ tidal-dl
[INFO] Current APIKeys: 0 Fire TV-Normal/High/HiFi(No Master)
-------------API-KEYS---------------
+-------+-------+------------+-----------------------------+
| Index | Valid | Platform   | Formats                     |
+-------+-------+------------+-----------------------------+
| 0     | False | Fire TV    | Normal/High/HiFi(No Master) |
| 1     | True  | Fire TV    | Master-Only(Else Error)     |
| 2     | False | Android TV | Normal/High/HiFi(No Master) |
| 3     | True  | TV         | Normal/High/HiFi/Master     |
+-------+-------+------------+-----------------------------+
APIKEY index:3
Starting login process...
Go to http://link.tidal.com/XXXXX within the next 5 minutes to complete setup.
Waiting for authorization...
[SUCCESS] AccessToken good for 1 week.
kangur83 commented 2 years ago

Download new file and it will be working, yesterday was new actualization

Tobito222 commented 2 years ago

Same problem here on both my Android and Windows

v3rmi commented 2 years ago

hi guys, I am having this problem on MAC OS with the latest update.. anyone else?

FenrirWolfCL commented 2 years ago

Same here, Getting:

$ tidal-dl -l  https://listen.tidal.com/album/666
Starting login process...
[ERR] Device authorization failed. Please try again.
[INFO] Download path:/mnt/data/Music/
[ERR] countryCode parameter missing [https://listen.tidal.com/album/666]

But fixed by switching APIKey:

$ tidal-dl
[INFO] Current APIKeys: 0 Fire TV-Normal/High/HiFi(No Master)
-------------API-KEYS---------------
+-------+-------+------------+-----------------------------+
| Index | Valid | Platform   | Formats                     |
+-------+-------+------------+-----------------------------+
| 0     | False | Fire TV    | Normal/High/HiFi(No Master) |
| 1     | True  | Fire TV    | Master-Only(Else Error)     |
| 2     | False | Android TV | Normal/High/HiFi(No Master) |
| 3     | True  | TV         | Normal/High/HiFi/Master     |
+-------+-------+------------+-----------------------------+
APIKEY index:3
Starting login process...
Go to http://link.tidal.com/XXXXX within the next 5 minutes to complete setup.
Waiting for authorization...
[SUCCESS] AccessToken good for 1 week.

Guys... There you got the solutions, simple as this! thank you my friend!

m8nky commented 2 years ago

The only API key that works in the list above is '1', but its for Master album only. '3' gives Device authorization failed.

morsik commented 2 years ago

The only API key that works in the list above is '1', but its for Master album only. '3' gives Device authorization failed.

@m8nky: Your list may be different than mine as you may have different valid tokens available to you (see Valid column)! Check your available API Keys on your computer and just try to switch to another if that's available.

chrisdashii commented 2 years ago

still not work, only with "master only"

FenrirWolfCL commented 2 years ago

still not work, only with "master only"

... Confirm

FenrirWolfCL commented 2 years ago

still not work, only with "master only"

But Tidal-GUI works fine!

chrisdashii commented 2 years ago

still not work, only with "master only"

But Tidal-GUI works fine!

i dont know how i use that

Alfsuper commented 2 years ago

Ok in macOS, thank´s

buscon commented 2 years ago

Same here, Getting:

$ tidal-dl -l  https://listen.tidal.com/album/666
Starting login process...
[ERR] Device authorization failed. Please try again.
[INFO] Download path:/mnt/data/Music/
[ERR] countryCode parameter missing [https://listen.tidal.com/album/666]

But fixed by switching APIKey:

$ tidal-dl
[INFO] Current APIKeys: 0 Fire TV-Normal/High/HiFi(No Master)
-------------API-KEYS---------------
+-------+-------+------------+-----------------------------+
| Index | Valid | Platform   | Formats                     |
+-------+-------+------------+-----------------------------+
| 0     | False | Fire TV    | Normal/High/HiFi(No Master) |
| 1     | True  | Fire TV    | Master-Only(Else Error)     |
| 2     | False | Android TV | Normal/High/HiFi(No Master) |
| 3     | True  | TV         | Normal/High/HiFi/Master     |
+-------+-------+------------+-----------------------------+
APIKEY index:3
Starting login process...
Go to http://link.tidal.com/XXXXX within the next 5 minutes to complete setup.
Waiting for authorization...
[SUCCESS] AccessToken good for 1 week.

Guys... There you got the solutions, simple as this! thank you my friend!

I confirm that this solution works for me too. Running version v2022.03.04.2 on Linux. I think this information should be in the documentation of the project.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity.