core.set_torrent_trackers url and tier.

Suggestions and discussion of future versions
Post Reply
tonny
New User
New User
Posts: 9
Joined: Thu Jun 20, 2013 8:30 pm

core.set_torrent_trackers url and tier.

Post by tonny »

This is the correct way to use core.set_torrent_trackers? what is "tier" for?

Code: Select all

3a81a025eb0b28761945fd001327cf4203bcd194 = Torrent id
udp://tracker.openbittorrent.com:80 = Tracker URL

Code: Select all

curl -b cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "core.set_torrent_trackers", "params": ["3a81a025eb0b28761945fd001327cf4203bcd194", [{"udp://tracker.openbittorrent.com:80","tier"}]], "id": 1}' http://localhost:8111/json
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: core.set_torrent_trackers url and tier.

Post by Cas »

tier is for multiple trackers, for single-tracker torrrent just use '0'
tonny
New User
New User
Posts: 9
Joined: Thu Jun 20, 2013 8:30 pm

Re: core.set_torrent_trackers url and tier.

Post by tonny »

This is torrent trackers info:
{"id": 1, "result": {"trackers": [{"fails": 0, "verified": false, "url": "udp://tracker.openbittorrent.com:80", "fail_limit": 0, "complete_sent": false, "source": 4, "start_sent": false, "tier": 0, "updating": true}, {"fails": 0, "verified": false, "url": "udp://tracker.publicbt.com:80", "fail_limit": 0, "complete_sent": false, "source": 2, "start_sent": false, "tier": 1, "updating": false}, {"fails": 0, "verified": false, "url": "udp://tracker.istole.it:6969", "fail_limit": 0, "complete_sent": false, "source": 2, "start_sent": false, "tier": 2, "updating": false}, {"fails": 0, "verified": false, "url": "udp://tracker.ccc.de:80", "fail_limit": 0, "complete_sent": false, "source": 2, "start_sent": false, "tier": 3, "updating": false}, {"fails": 0, "verified": false, "url": "udp://open.demonii.com:1337", "fail_limit": 0, "complete_sent": false, "source": 2, "start_sent": false, "tier": 4, "updating": false}]}, "error": null}
Now I want to set tier number 5:

Code: Select all

curl -b cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "core.set_torrent_trackers", "params": ["3a81a025eb0b28761945fd001327cf4203bcd194", [{"http://tracker.coppersurfer.tk/announce", 5}]], "id": 1}' http://localhost:8111/json
That not add the new tracker, what I'm doing wrong?
Post Reply