Page 1 of 1

Adding torrent remotely using RPC

Posted: Mon Feb 06, 2017 7:02 pm
by BoKKeR
hey I am trying to add transmission to my torrent program. I need a way to add torrents remotely, in any form, magnet or file. the torrent-add method suggests that I need to have a torrent file on the server locally to be able to add it to transmission. I see no way to upload the file. no way to add only magnet link. am I missing something or its just not possible

Re: Adding torrent remotely using RPC

Posted: Wed Feb 08, 2017 8:15 am
by killemov
It's not that simple, but yeah you are missing something.
https://github.com/killemov/Shift/blob/ ... t.js#L2848

Re: Adding torrent remotely using RPC

Posted: Thu Feb 16, 2017 8:04 pm
by BoKKeR
x190 wrote:Older info, but might be useful?

https://blog.flo.cx/2011/02/how-to-open ... one-click/
thats more of a workaround. there should be a api call that could take magnet or torrent. Its not that big of a deal I dont get why its missing

Re: Adding torrent remotely using RPC

Posted: Thu Feb 16, 2017 9:16 pm
by killemov
IT is not missing. You are missing something. The current rpc-spec allows for both torrents and magnets to be uploaded. Shift was the first web-client to use the FileReader api to read the torrent dropped onto the page and encode it and send it over the normal rpc connection. The Transmission team then copied this way of doing it. The OLD way was to post the data to a separate upload link.

Re: Adding torrent remotely using RPC

Posted: Sat Feb 18, 2017 12:21 pm
by BoKKeR
I managed to get the content of the .torrent added after I base64 encoded it with "torrent-add", "metainfo" but I cant get the the torrent added with a magnet link at all. I tried "filename" with utf8 and base64

Re: Adding torrent remotely using RPC

Posted: Sun Feb 19, 2017 9:23 am
by BoKKeR
yes that method worked with uTorrent but I had to escape the magnet link, here it dosent work I can try to utf8 encode it or base64 but it still wont work :/ I will look trough the code on the github tho thx

Re: Adding torrent remotely using RPC

Posted: Sun Mar 19, 2017 11:50 am
by VoXqWBqQME6WtI
viewtopic.php?p=67122#p67122

Check if my python magnet upload script will help somehow.

Re: Adding torrent remotely using RPC

Posted: Tue Mar 28, 2017 6:57 pm
by BoKKeR
Thanks it did solve my problem. thanks for the help :)