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 476 forks source link

[BUG]: Video Download - [ERR] {TITLE} parse ts urls failed. #872

Closed doomdance closed 2 years ago

doomdance commented 2 years ago

Which tool

tidal-dl

Version

v2022.02.07.1

Platform

Mac Big Sur 11.3.1

Describe the bug

When attempting to download a video using the URL or ID the following error occurs. [ERR] {TITLE} parse ts urls failed.

Relevant log output

[ERR] {TITLE} parse ts urls failed.

Add screenshots

Screen Shot 2022-03-02 at 10 42 07 AM
DreamerSSDGang commented 2 years ago

I been having the same issue since the last update

aberfan commented 2 years ago

This is irritating because it only happens with some installations, using the exact same tidal-dl version and config file that works on other Windows and Linux systems, across various versions of Python.

The issue is that the content URL is being improperly decoded (specifically here, hyphens) and you see stuff like this: Signature=‾TSpMHqYk2eYczO‾-0Li‾k5H‾‾cg etc when you should see this: Signature=4h-lFi2hpiApYALiG8ZB-Ng-~Nbtf9Ln9I7csrxZsPo3jxkb8eD91frBwhUrgREkzfSi6MVkki- etc

Why? Because it's quality open source, of course: https://stackoverflow.com/questions/44203397/python-requests-get-returns-improperly-decoded-text-instead-of-utf-8

The Fix

To fix, edit tidal-dl.py, and change this:

136    def __getResolutionList__(self, url):
137        ret = []
138        txt = requests.get(url).text

to this:

136    def __getResolutionList__(self, url):
137        ret = []
138        txt = requests.get(url).content.decode('utf-8')
doomdance commented 2 years ago

@aberfan It worked as described. Thank you so much!!!

alexandrox commented 2 years ago

This works fine! Tks

DreamerSSDGang commented 2 years ago

Can someone one show us a step my step for them slow learners. please! & Thank you

github-actions[bot] commented 2 years ago

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

RandomNinjaAtk commented 2 years ago

Just ran into this issue on alpine linux, seems like the fix was never implemented into tidal-dl???

RandomNinjaAtk commented 2 years ago

So after finding this, I was able to replicate the fix locally. Wrote a PR to push it upstream...