Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to download albums past 50 tracks #17

Closed
alextarrell opened this issue Aug 7, 2022 · 5 comments
Closed

Unable to download albums past 50 tracks #17

alextarrell opened this issue Aug 7, 2022 · 5 comments

Comments

@alextarrell
Copy link
Contributor

When downloading large albums, tracks past 50 will be detected as already existing and not download them. It looks like it's looping around back to the first track instead of continuing with track 51.

% ./tdl get https://listen.tidal.com/album/201482078
Getting Track Info for: [1] <Track 1 name>
Submitting Track to Download Queue: [1] <Track 1 name>
Download Complete | [1] <Track 1 name>
...
Getting Track Info for: [50] <Track 50 name>
Submitting Track to Download Queue: [50] <Track 50 name>
Download Complete | [50] <Track 50 name>
Getting Track Info for: [1] <Track name 1>
Submitting Track to Download Queue: [1] <Track name 1>
File Exists | [1] <Track name 1>
...
Getting Track Info for: [35] <Track 35 name>
Submitting Track to Download Queue: [35] <Track 35 name>
File Exists | [35] <Track 35 name>

(lines omitted/altered for brevity)

Subsequent attempts on the same albums will encounter the same error on the same tracks. This will also affect downloading by artist once it reaches the same album. Changing the number of workers/downloads does not have an affect on the issue, though I was seeing EOF while parsing a value at line 1 column 0 errors.

If one were to download all the tracks individually they will work just fine, so this is likely the workaround.

% tdl get https://listen.tidal.com/browse/track/201482079
...
% tdl get https://listen.tidal.com/browse/track/201482163
@MinisculeGirraffe
Copy link
Owner

The behavior is 100% caused by a bug in this function.

I'll work on a fix and author a new version with it patched in a couple hours.

@MinisculeGirraffe
Copy link
Owner

Got the fix in place (#18).

The Tidal API only lets you get up to 50 items of an album/playlist/artist as a time, and I forgot to re-calculate the offset per loop 😅.

Easy fix, Appreciate you bringing it up.

I authored v0.2.5 with this in place. The CI should have the binaries built in a few minutes.

@MinisculeGirraffe
Copy link
Owner

MinisculeGirraffe commented Aug 8, 2022 via email

@deimidis
Copy link

Hi, sorry to bring this again, but trying to get a 100 tracks album, just get 51. Should I paste debug info right here?

@deimidis
Copy link

I just ran it with DEBUG option. It generates both download commands (i see a JSON with the first 50 and another with the rest) but only downloads the first one (maybe Tidal limit). Is there an easy way to add the offset on the command to download?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants