/** * A nice string of a Torrent's hash * * @param torrent Torrent to fromat hash of * @return Hash string in a nice format */ public static String nicePrintTorrentHash(TOTorrent torrent) { return nicePrintTorrentHash(torrent, false); }
while (torrent.hasNext()) { dm = (DownloadManager) torrent.next(); if (hash.equals(TorrentUtils.nicePrintTorrentHash(dm.getTorrent(), true))) { if (dm.getDisplayName() == null) name = "?"; if (hash.equals(TorrentUtils.nicePrintTorrentHash(ht.getTorrent(), true))) {
if (dm.getState() == DownloadManager.STATE_ERROR) out.println("Error: " + dm.getErrorDetails()); out.println("Hash: " + TorrentUtils.nicePrintTorrentHash(dm.getTorrent(), true)); out.println("- Torrent file -"); out.println("Torrent Filename: " + dm.getTorrentFileName());
DisplayFormatters.formatDownloadStatus(manager), manager.getState()==DownloadManager.STATE_ERROR, manager.getSaveLocation().toString(), TorrentUtils.nicePrintTorrentHash(torrent), piecesDoneAndSum, manager.getPieceLength(),
writeTag( "HASH", TorrentUtils.nicePrintTorrentHash(torrent, true));
String hash_str = TorrentUtils.nicePrintTorrentHash( torrent );