Tidal-Media-Downloader
Tidal-Media-Downloader copied to clipboard
[BUG] Sanitize for special Chars
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
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)
An update on the above issue: Tidal-dl (CLI) Version 2020.9.26.1
Steps to reproduce:
- 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
invisible character "U+0020 : SPACE [SP]" it
It is not invisible. It is just very normal space. 0x200B character (Zero width space) is what is invisible.