From: David ‘Bombe’ Roden Date: Thu, 3 Jan 2013 18:55:11 +0000 (+0100) Subject: Show file count, seed count, and leech count in mail. X-Git-Tag: 0.1~84 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b29bc5d72c7dc2cea5103eefdbf38d033a89a6e1;p=rhynodge.git Show file count, seed count, and leech count in mail. --- 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("