From b29bc5d72c7dc2cea5103eefdbf38d033a89a6e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 3 Jan 2013 19:55:11 +0100 Subject: [PATCH] Show file count, seed count, and leech count in mail. --- .../java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java b/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java index 65a215e..19268e9 100644 --- a/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java +++ b/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java @@ -93,7 +93,8 @@ public class NewTorrentTrigger implements Trigger { plainText.append("New Torrents:\n\n"); for (TorrentFile torrentFile : torrentFiles) { plainText.append(torrentFile.name()).append('\n'); - plainText.append('\t').append(torrentFile.size()).append('\n'); + plainText.append('\t').append(torrentFile.size()).append(" in ").append(torrentFile.fileCount()).append(" file(s)\n"); + plainText.append('\t').append(torrentFile.seedCount()).append(" seed(s), ").append(torrentFile.leechCount()).append(" leecher(s)\n"); plainText.append('\t').append(torrentFile.magnetUri()).append('\n'); plainText.append('\t').append(torrentFile.downloadUri()).append('\n'); plainText.append('\n'); @@ -115,7 +116,8 @@ public class NewTorrentTrigger implements Trigger { htmlText.append("