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.48k stars 476 forks source link

[BUG] Sanitize for special Chars #458

Open Oleophobic opened 4 years ago

Oleophobic commented 4 years ago

This won't download due to this invisible character "U+0020 : SPACE [SP]" it is attached to the artists name (for whatever reason)

link for reference below https://listen.tidal.com/album/153265349

BlindTango commented 4 years ago

I can confirm this as I get the error: [ERR] Download failed!My Foolish Heart (Expecting value: line 1 column 1 (char 0))

Also, this seems to appear at random. Steps to reproduce: Download the Artist: https://tidal.com/browse/artist/846

Here's two logs to show that it appears at random. see in one that it downloads without any problems but, the second log shows it has an error on line 1 column1 char(0)

tidal-dl1.log tidal-dl.log

BlindTango commented 4 years ago

An update on the above issue: Tidal-dl (CLI) Version 2020.9.26.1

Steps to reproduce:

  1. download https://tidal.com/browse/artist/9683 You get the error and the application crashes: Traceback (most recent call last): File "tidal_dl__init.py", line 230, in File "tidal_dl__init__.py", line 200, in main File "tidal_dl__init.py", line 193, in mainCommand File "tidal_dl\download.py", line 335, in start File "tidal_dl\download.py", line 284, in artist__ File "tidal_dl\download.py", line 264, in album File "tidal_dl\download.py", line 193, in downloadVideo File "tidal_dl\tidal.py", line 230, in getVideoStreamUrl File "tidal_dl\tidal.py", line 61, in get File "requests\models.py", line 898, in json File "json__init__.py", line 357, in loads File "json\decoder.py", line 337, in decode File "json\decoder.py", line 355, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [12036] Failed to execute script init__ tidal-dl.log