From 2743f8edc3b22deb7a5cd34760faef137fbf4fdc Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sat, 16 Apr 2011 23:41:56 +0000 Subject: updating a torrents file or trackers doesn't make it recently active, so these changes could get missed if doing active only updates. for these: send the torrent id as the request tag, which Transmission passes back, then we request an update just for that torrent. --- src/requests.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/requests.h') diff --git a/src/requests.h b/src/requests.h index b87cf3f..8c1bc00 100644 --- a/src/requests.h +++ b/src/requests.h @@ -27,7 +27,7 @@ JsonNode *generic_request(gchar * method, JsonArray * array); JsonNode *session_set(void); JsonNode *session_get(void); -JsonNode *torrent_get(gboolean recent); +JsonNode *torrent_get(gint64 id); JsonNode *torrent_set(JsonArray * array); JsonNode *torrent_pause(JsonArray * array); JsonNode *torrent_start(JsonArray * array); @@ -41,5 +41,6 @@ JsonNode *torrent_set_location(JsonArray * array, gchar * location, JsonNode *blocklist_update(void); JsonNode *port_test(void); JsonNode *session_stats(void); +void request_set_tag(JsonNode * req, gint64 tag); #endif /* REQUESTS_H_ */ -- cgit v1.2.3