diff --git a/src/torrentcreator/createtorrent.ui b/src/torrentcreator/createtorrent.ui
index 7d13dff05..cbda85e75 100644
--- a/src/torrentcreator/createtorrent.ui
+++ b/src/torrentcreator/createtorrent.ui
@@ -123,6 +123,9 @@
0
+
+ You can separate tracker tiers / groups with an empty line.
+
false
diff --git a/src/torrentcreator/torrentcreatorthread.cpp b/src/torrentcreator/torrentcreatorthread.cpp
index 6bbaa8472..ee238899e 100644
--- a/src/torrentcreator/torrentcreatorthread.cpp
+++ b/src/torrentcreator/torrentcreatorthread.cpp
@@ -113,8 +113,18 @@ void TorrentCreatorThread::run() {
foreach (const QString &seed, url_seeds) {
t.add_url_seed(seed.trimmed().toStdString());
}
+ int tier = 0;
+ bool newline = false;
foreach (const QString &tracker, trackers) {
- t.add_tracker(tracker.trimmed().toStdString());
+ if (tracker.isEmpty()) {
+ if (newline)
+ continue;
+ ++tier;
+ newline = true;
+ continue;
+ }
+ t.add_tracker(tracker.trimmed().toStdString(), tier);
+ newline = false;
}
if (abort) return;
// calculate the hash for all pieces