add `isPrivate' to the info section of the torrent-get method
This commit is contained in:
parent
d129975858
commit
5c3cb6fbf2
|
@ -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
|
||||||
|
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue