Browse Source

Support tracker mirrors in torrent creator

adaptive-webui-19844
Nick Tiskov 12 years ago
parent
commit
025f4f9737
  1. 7
      src/torrentcreator/torrentcreatorthread.cpp

7
src/torrentcreator/torrentcreatorthread.cpp

@ -113,8 +113,13 @@ void TorrentCreatorThread::run() { @@ -113,8 +113,13 @@ void TorrentCreatorThread::run() {
foreach (const QString &seed, url_seeds) {
t.add_url_seed(seed.trimmed().toStdString());
}
qint32 tier = 0;
foreach (const QString &tracker, trackers) {
t.add_tracker(tracker.trimmed().toStdString());
if (tracker.isEmpty()) {
++tier;
continue;
}
t.add_tracker(tracker.trimmed().toStdString(), tier);
}
if (abort) return;
// calculate the hash for all pieces

Loading…
Cancel
Save