8000 Download album using the API? · Issue #178 · cstaelen/tidarr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Download album using the API? #178

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

Open
d3mystified opened this issue Apr 12, 2025 · 4 comments
Open

Download album using the API? #178

d3mystified opened this issue Apr 12, 2025 · 4 comments

Comments

@d3mystified
Copy link

I'm trying to download an album using:

curl 'http://host:port/api/save' -X POST -H 'Content-Type: application/json' --data-raw '{"item":{"id":96583900}}'

I get Created in the response but nothing is actually downloaded.

Any idea why and how I can download things using the API?

@cstaelen
Copy link
Owner
cstaelen commented Apr 13, 2025

Hi @d3mystified 👋

Thanks for submitting.

I not sure what you are trying to achieve.
Even if I make this curl query work, this will order Tidarr to download the album, and you will get it in your Tiddl download folder.
This will not download the album locally. This will ask for Tidarr to add it to the download queue.
Is that what you are expecting from ?


For now, you can run tiddl command via cli :
docker compose exec -it tiddl url http://www.tidal.com/album/96583900 download
But it has to be executed on the Docker server.

Also, you will have to mount /home/app/standalone/download/incomplete folder in compose.yml as it will not automatically being post-processed by Tidarr.


Regards,

@cstaelen
Copy link
Owner

After some tries, I found out how to make the curl working using url :

curl 'http://localhost:8484/api/save' -X POST -H 'Content-Type: application/json' --data-raw '{"item":{"url": "https://listen.tidal.com/album/251082404", "type": "album", "status": "queue"}}'

Let me know if it was what you were looking for :)

@d3mystified
Copy link
Author

This will not download the album locally. This will ask for Tidarr to add it to the download queue.

Are those not the same things? I'm just trying to programmatically queue and download albums/playlists.

I tried the suggestion in #178 (comment) but it didn't download the album.

curl 'http://localhost:8484/api/save' -X POST -H 'Content-Type: application/json' --data-raw '{"item":{"url": "https://listen.tidal.com/album/350438777", "type": "album", "status": "queue"}}'

I get Created but no files are downloaded. Weird.

@cstaelen
Copy link
Owner
cstaelen commented Apr 17, 2025

Are those not the same things? I'm just trying to programmatically queue and download albums/playlists.

If you are running docker locally on your machine which you're trying to curl, indeed it's the same.
By “download locally”, I mean curl will not download the content. Album will be added in tidarr queue.

After running the curl command above and get "Created" output, it should be visible in Tidarr UI :

Image

Is that what you get ?

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

2 participants
1612
0