|
|
|
@ -1915,12 +1915,30 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
@@ -1915,12 +1915,30 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
|
|
|
|
} |
|
|
|
|
emit torrentFinishedChecking(h); |
|
|
|
|
emit metadataReceived(h); |
|
|
|
|
if(torrentsToPausedAfterChecking.contains(hash)) { |
|
|
|
|
torrentsToPausedAfterChecking.removeOne(hash); |
|
|
|
|
h.pause(); |
|
|
|
|
emit pausedTorrent(h); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
a = s->pop_alert(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Bittorrent::recheckTorrent(QString hash) { |
|
|
|
|
QTorrentHandle h = getTorrentHandle(hash); |
|
|
|
|
if(h.is_valid() && h.has_metadata()) { |
|
|
|
|
if(h.is_paused()) { |
|
|
|
|
if(!torrentsToPausedAfterChecking.contains(h.hash())) { |
|
|
|
|
torrentsToPausedAfterChecking << h.hash(); |
|
|
|
|
h.resume(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
h.force_recheck(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QHash<QString, TrackerInfos> Bittorrent::getTrackersInfo(QString hash) const{ |
|
|
|
|
return trackersInfos.value(hash, QHash<QString, TrackerInfos>()); |
|
|
|
|
} |
|
|
|
|