Skip to content

[BUG] - Lidarr - Tidal downloads broken #391

@PixNyb

Description

@PixNyb

Application
Lidarr

Host platform
Any

Script
tidal-dl

Script Version
2.48 (main)

Describe the bug
It appears that Tidal has finally changed it's API enough for tidal-dl to be unable to function. An update to use tidal-dl-ng might be a solution to this problem, as this seems to function just fine.

When making a download attempt to any album the following occurs:

Starting login process...
[ERR] Login failed.Device authorization failed. Please choose another apikey.
[INFO] Download path:/config/extended/downloads/audio/incomplete
[ERR] No result. [248123865]

I've tried re-authenticating manually, and picking different API keys to no avail.

To Reproduce
Steps to reproduce the behavior:

  1. Start lidarr with the extended scripts installed
  2. Wait for the Audio script to kick off and download missing/unmet albums

Expected behavior
Tidal should be using my authentication to download lossless official albums

Logs/Screenshots
During startup:

...
x :: Audio :: 2.48 :: TIDAL :: Verifying tidal-dl configuration
x :: Audio :: 2.48 :: TIDAL :: No default config found, importing default config "tidal.json"
/usr/lib/python3.12/site-packages/aigpy/tagHelper.py:211: SyntaxWarning: invalid escape sequence '\c'
  self.copyright = self.__getTagItem__('\cprt')
/usr/lib/python3.12/site-packages/tidal_dl/printf.py:47: SyntaxWarning: invalid escape sequence '\_'
  def logo():
x :: Audio :: 2.48 :: TIDAL :: Purging album list cache...
...

Randomly when kicking off the script:

x :: Audio :: 2.48 :: TIDAL :: Verifying tidal-dl configuration
x :: Audio :: 2.48 :: TIDAL :: No default config found, importing default config "tidal.json"
x :: Audio :: 2.48 :: TIDAL :: ERROR :: Loading client for required authentication, please authenticate, then exit the client...

 /$$$$$$$$ /$$       /$$           /$$               /$$ /$$
|__  $$__/|__/      | $$          | $$              | $$| $$
   | $$    /$$  /$$$$$$$  /$$$$$$ | $$          /$$$$$$$| $$
   | $$   | $$ /$$__  $$ |____  $$| $$ /$$$$$$ /$$__  $$| $$
   | $$   | $$| $$  | $$  /$$$$$$$| $$|______/| $$  | $$| $$
   | $$   | $$| $$  | $$ /$$__  $$| $$        | $$  | $$| $$
   | $$   | $$|  $$$$$$$|  $$$$$$$| $$        |  $$$$$$$| $$
   |__/   |__/ \_______/ \_______/|__/         \_______/|__/
   
       https://github.com/yaronzz/Tidal-Media-Downloader 
       
                        2022.10.31.1

+-------------------------------+-----------------------------------------------------------+
| SETTINGS                      | VALUE                                                     |
+-------------------------------+-----------------------------------------------------------+
| Settings path                 | /config/xdg/.tidal-dl.json                                |
| Download path                 | /config/extended/downloads/audio/incomplete               |
| Album folder format           | atd                                                       |
| Playlist folder format        | Playlist/{PlaylistName} [{PlaylistUUID}]                  |
| Track file format             | {TrackNumber} - {TrackTitle}                              |
| Video file format             | {VideoNumber} - {ArtistName} - {VideoTitle}{ExplicitFlag} |
| Audio quality                 | AudioQuality.HiFi                                         |
| Video quality                 | VideoQuality.P1080                                        |
| Use playlist folder           | False                                                     |
| Check exist                   | True                                                      |
| Show progress                 | False                                                     |
| Show Track Info               | True                                                      |
| Save AlbumInfo.txt            | False                                                     |
| Save covers                   | True                                                      |
| Include singles & EPs         | True                                                      |
| Language                      | English                                                   |
| Save timed lyrics (.lrc file) | True                                                      |
| Multi thread download         | False                                                     |
| APIKey support                | [4]Normal/High/HiFi/Master                                |
| Use Download Delay            | None                                                      |
+-------------------------------+-----------------------------------------------------------+
Starting login process...
[ERR] Login failed.Device authorization failed. Please choose another apikey.
====================================================
CHOICE                 FUNCTION                     
Enter '0':             Exit                         
Enter '1':             Check AccessToken            
Enter '2':             Logout                       
Enter '3':             Set AccessToken              
Enter '4':             Settings-Path                
Enter '5':             Settings-Quality             
Enter '6':             Settings-Else                
Enter '7':             Select APIKey                
Enter 'Url/ID':        Download by url or ID        
====================================================
Traceback (most recent call last):
  File "/usr/bin/tidal-dl", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/tidal_dl/__init__.py", line 92, in main
    choice = Printf.enter(LANG.select.PRINT_ENTER_CHOICE)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/tidal_dl/printf.py", line 135, in enter
    ret = input("")
          ^^^^^^^^^
EOFError: EOF when reading a line
Enter Choice:x :: Audio :: 2.48 :: TIDAL :: Purging album list cache...

During downloads:

x :: Audio :: 2.48 :: 1 :: missing :: 6 of 62 :: Kaleo :: Surface Sounds :: Album :: Download Attempt number 1
Starting login process...
[ERR] Login failed.Device authorization failed. Please choose another apikey.
[INFO] Download path:/config/extended/downloads/audio/incomplete
[ERR] No result. [179016368]

Additional context
Tidal-dl has been end of life for quite a while and tidal-dl-ng has replaced it in many cases. It should be rather easy to update the scripts to use the ng variant rather than the original tidal-dl

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageNeeds to be validated/confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions