Support tracker mirrors in torrent creator

This commit is contained in:
Nick Tiskov 2013-03-03 17:22:11 +04:00
parent 9c7807ded4
commit 025f4f9737

View File

@ -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