Transmission torrent-add RPC doesn't accept download_dir as an argument #3

merged 2 commits into from Jul 19, 2013


None yet
2 participants

afresh1 commented Oct 13, 2012

It appears that the transmission RPC api is rather picky about what it accepts as arguments. I don't know if there it is necessary to have a mapping of arguments to fields or if this will just work.

This at least fixes my problem.

afresh1 added some commits Oct 13, 2012

@afresh1 afresh1 Make _normal2Camel recurse as well
_camel2Normal would take a hashref as an argument, but I needed
hash keys to be able to go the other way as well.

At least it got less readable which appears to be a goal of this set of subs
@afresh1 afresh1 Send rpc %args through _normal2Camel
Transmission likes things (specifically download-dir in my case) to have
dashes not underscores.

This fixes all the args up so you can generally use either.

jhthorsen merged commit 4b820c5 into olof:master Jul 19, 2013

@jhthorsen jhthorsen added a commit that referenced this pull request Jul 19, 2013

@jhthorsen jhthorsen Released version 0.07
       - Fix test failures due to hash randomization (RT #81561)
         Merge pull request #3 from afresh1/master
       - Make fields parameter to read_torrents overrideable
         Merge pull request #5 from olof/topic/override_fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment