Closed wpearse closed 7 years ago
OK, so digging through the NzbDrone source, you can test your local putiosync in the same way NzbDrone does using the command:
curl -H "Content-Type: application/json" -X POST -d '{"method":"torrent-get", "arguments":{"fields": ["id","hashString","name","downloadDir","status","totalSize","leftUntilDone","isFinished","eta","errorString"]}}' http://127.0.0.1:7001/transmission/rpc
The response we get from putiosync is:
{"error_description": "'Transfer' object has no attribute 'errorMessage'", "result": "error"}
Hi @wpearse. Yes, transmission masquerade was added but hasn't yet been documented (or tested) to a large degree yet. I am using it with Sonarr as well, but I do know that there are some robustness problems with this particular request type.
I'm pretty busy currently, so I would welcome a PR if you want to take a shot at fixing. First step is probably to log the raw exception in Python (probably place logging in https://github.com/posborne/putio-sync/blob/master/putiosync/webif/transmissionrpc.py#L150). The actual code handling the request should be here: https://github.com/posborne/putio-sync/blob/master/putiosync/webif/transmissionrpc.py#L129. That code attempts to map from the put.io transfer info to that provided by Transmission -- it can only provide some items and must be failing somewhere in trying to do that translation.
It looks like putio-sync is designed (?) to masquerade as Transmission. I'm using Sonarr 2.0.0.3953.
I'm using the tip of the
master
branch, started using the commandpython devrun.py -w /media/sf_putio/upload /media/sf_putio/download
. Using a Sonarr "TorrentBlackhole" it seems to work fine.But, when adding a new Transmission download client in Sonarr, I use an IP of localhost and a port of 7001. I leave all other options as default.
The error, when saving is "Failed to get the list of torrents: error". From the Sonarr logs (FWIW) I can see this:
So, my questions are:
1) Am I missing some configuration option? 2) Has anyone managed to get this working? (Is it meant to work?)