Proxy that allows put.io to be used as a download client for Sonarr/Radarr. The proxy uses the Transmission protocol.
cargo install putioarr
putioarr get-token
putioarr run -s <file state is kept> -a <putio API key> -d <sonarr/radarr download dir>
The proxy will upload torrents or magnet links to put.io. It will then continue to monitor transfers. When a transfer is completed, all files belonging to the transfer will be downloaded to the specified download directory. The proxy will remove the files after Sonarr/Radarr has imported them and put.io is done seeding. A file is determined to be imported if it has more than one hardlink pointed to it.
The default UID that is used to write files is 1000. You can override this with -u <UID>
Thanks to davidchalifoux for borrowed code from kaput-cli.