From 5c3cb6fbf26a8c8254523a556cf3e07f361473df Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 20 Jun 2008 19:55:34 +0000 Subject: [PATCH] add `isPrivate' to the info section of the torrent-get method --- doc/rpc-spec.txt | 1 + libtransmission/rpc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/rpc-spec.txt b/doc/rpc-spec.txt index 36620e918..0d7cdf8e0 100644 --- a/doc/rpc-spec.txt +++ b/doc/rpc-spec.txt @@ -168,6 +168,7 @@ | number | dateCreated | tr_info | number | pieceCount | tr_info | number | pieceSize | tr_info + | 'boolean'| isPrivate | tr_torrent -------------------+----------+------------------------+------------- limits, 128 | number | downloadLimit | tr_torrent | number | downloadLimitMode | tr_torrent diff --git a/libtransmission/rpc.c b/libtransmission/rpc.c index 64d35474e..2b3598e4d 100644 --- a/libtransmission/rpc.c +++ b/libtransmission/rpc.c @@ -293,6 +293,7 @@ addInfo( const tr_torrent * tor, tr_benc * d, uint64_t fields ) tr_bencDictAddStr( d, "comment", inf->comment ? inf->comment : "" ); tr_bencDictAddStr( d, "creator", inf->creator ? inf->creator : "" ); tr_bencDictAddInt( d, "dateCreated", inf->dateCreated ); + tr_bencDictAddInt( d, "isPrivate", tr_torrentIsPrivate( tor ) ); tr_bencDictAddInt( d, "pieceCount", inf->pieceCount ); tr_bencDictAddInt( d, "pieceSize", inf->pieceSize ); }