add `isPrivate' to the info section of the torrent-get method

This commit is contained in:
Charles Kerr 2008-06-20 19:55:34 +00:00
parent d129975858
commit 5c3cb6fbf2
2 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@
| number | dateCreated | tr_info | number | dateCreated | tr_info
| number | pieceCount | tr_info | number | pieceCount | tr_info
| number | pieceSize | tr_info | number | pieceSize | tr_info
| 'boolean'| isPrivate | tr_torrent
-------------------+----------+------------------------+------------- -------------------+----------+------------------------+-------------
limits, 128 | number | downloadLimit | tr_torrent limits, 128 | number | downloadLimit | tr_torrent
| number | downloadLimitMode | tr_torrent | number | downloadLimitMode | tr_torrent

View File

@ -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, "comment", inf->comment ? inf->comment : "" );
tr_bencDictAddStr( d, "creator", inf->creator ? inf->creator : "" ); tr_bencDictAddStr( d, "creator", inf->creator ? inf->creator : "" );
tr_bencDictAddInt( d, "dateCreated", inf->dateCreated ); tr_bencDictAddInt( d, "dateCreated", inf->dateCreated );
tr_bencDictAddInt( d, "isPrivate", tr_torrentIsPrivate( tor ) );
tr_bencDictAddInt( d, "pieceCount", inf->pieceCount ); tr_bencDictAddInt( d, "pieceCount", inf->pieceCount );
tr_bencDictAddInt( d, "pieceSize", inf->pieceSize ); tr_bencDictAddInt( d, "pieceSize", inf->pieceSize );
} }