|
|
@ -1100,7 +1100,6 @@ void QBtSession::loadTorrentTempData(QTorrentHandle h, QString savePath, bool ma |
|
|
|
if(TorrentTempData::hasTempData(hash)) { |
|
|
|
if(TorrentTempData::hasTempData(hash)) { |
|
|
|
// sequential download
|
|
|
|
// sequential download
|
|
|
|
h.set_sequential_download(TorrentTempData::isSequential(hash)); |
|
|
|
h.set_sequential_download(TorrentTempData::isSequential(hash)); |
|
|
|
h.prioritize_first_last_piece(TorrentTempData::isSequential(hash)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The following is useless for newly added magnet
|
|
|
|
// The following is useless for newly added magnet
|
|
|
|
if(!magnet) { |
|
|
|
if(!magnet) { |
|
|
@ -1109,6 +1108,9 @@ void QBtSession::loadTorrentTempData(QTorrentHandle h, QString savePath, bool ma |
|
|
|
TorrentTempData::getFilesPriority(hash, fp); |
|
|
|
TorrentTempData::getFilesPriority(hash, fp); |
|
|
|
h.prioritize_files(fp); |
|
|
|
h.prioritize_files(fp); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Prioritize first/last piece
|
|
|
|
|
|
|
|
h.prioritize_first_last_piece(TorrentTempData::isSequential(hash)); |
|
|
|
|
|
|
|
|
|
|
|
// Update file names
|
|
|
|
// Update file names
|
|
|
|
const QStringList files_path = TorrentTempData::getFilesPath(hash); |
|
|
|
const QStringList files_path = TorrentTempData::getFilesPath(hash); |
|
|
|
bool force_recheck = false; |
|
|
|
bool force_recheck = false; |
|
|
|