code: public TorrentInfo torrentInfo() {
          torrent_info ti = p.ti_ptr();
          return ti != null && ti.is_valid() ? new TorrentInfo(ti) : null;
      }
docs: {@link TorrentInfo} object with the torrent to add.
  
  @return the torrent info or null if not set