mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Support tracker mirrors in torrent creator
This commit is contained in:
parent
9c7807ded4
commit
025f4f9737
@ -113,8 +113,13 @@ void TorrentCreatorThread::run() {
|
|||||||
foreach (const QString &seed, url_seeds) {
|
foreach (const QString &seed, url_seeds) {
|
||||||
t.add_url_seed(seed.trimmed().toStdString());
|
t.add_url_seed(seed.trimmed().toStdString());
|
||||||
}
|
}
|
||||||
|
qint32 tier = 0;
|
||||||
foreach (const QString &tracker, trackers) {
|
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;
|
if (abort) return;
|
||||||
// calculate the hash for all pieces
|
// calculate the hash for all pieces
|
||||||
|
Loading…
Reference in New Issue
Block a user