luto / autoputio

0 stars 0 forks source link

add parent_id #1

Closed nichtmax closed 3 years ago

nichtmax commented 3 years ago

it would be nice to be able to define the folder the transfers should end up in. add_url and add_torrent accept parent_id as second argument, if not set it's 0 - the root folder.

Each folder has a unique parent_id, maybe it's possible to look up the ID for the folder with find.

A second argument would be nice: python autoputio.py torrents [destination_folder| parent_id]

nichtmax commented 3 years ago

There is an endpoint in the API for looking up parent_id for files and folders.

luto commented 3 years ago

https://github.com/luto/autoputio/commit/a0acff110965ba2682ea3fae291440d7697390d9

give it a try. I don't have a putio account to test.