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

[Feature Request] - Automation of the download cycle #8357

Open
SpudmanWP opened this issue Dec 24, 2024 · 1 comment
Open

[Feature Request] - Automation of the download cycle #8357

SpudmanWP opened this issue Dec 24, 2024 · 1 comment

Comments

@SpudmanWP
Copy link

SpudmanWP commented Dec 24, 2024

I'd like to set up my Tribler instance to be as hands-off as possible.
It's currently in it's own Linux VM but will be in a Docker container when that gets released for 8.x

To that end, I'd like to propose some features to support automation:

  1. Given that Tribler already supports subfolders in the Watch folder, let those folders represent a "Category".
  2. Have "Category" appear in a UI column for the download.
  3. Have the ability to change the Category after a download has started.
  4. When a file completes, move the Watch folder torrent file to a "completed" folder that mimics the Watch folder, including Category subfolders.
  5. When a file completes, move the completed download folder to another location according to a rules-based filter (based on Category, Name, etc). The file should still be able to be shared after moving.
@qstokkink
Copy link
Contributor

If you want this level of complexity, it's probably a better to make your own script.

Tribler supports a REST API that allows you directly read and modify your downloads. You can play around with this by browsing to http://127.0.0.1:12345/docs (where 127.0.0.1 and 12345 are the IP and port Tribler is running on).

For example, moving a download with infohash abcdefabcdefabcdef00 can be done with an HTTP PATCH request to http://127.0.0.1:12345/api/downloads/abcdefabcdefabcdef00 and the request body:

{
    "state": "move_storage",
    "dest_dir": "/some/directory"
}

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

No branches or pull requests

2 participants