mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
BUGFIX: Improved incremental download
This commit is contained in:
parent
df8c591edd
commit
b4fbaaa47c
3 changed files with 4 additions and 2 deletions
|
@ -386,7 +386,7 @@ void bittorrent::addTorrent(QString path, bool fromScanDir, QString from_url){
|
|||
// Incremental download
|
||||
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".incremental")){
|
||||
qDebug("Incremental download enabled for %s", t.name().c_str());
|
||||
h.set_sequenced_download_threshold(15);
|
||||
h.set_sequenced_download_threshold(1);
|
||||
}
|
||||
// If download from url, remove temp file
|
||||
if(!from_url.isNull()) QFile::remove(file);
|
||||
|
@ -1062,7 +1062,7 @@ void bittorrent::reloadTorrent(const torrent_handle &h){
|
|||
// Incremental download
|
||||
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+fileHash+".incremental")){
|
||||
qDebug("Incremental download enabled for %s", (const char*)fileName.toUtf8());
|
||||
new_h.set_sequenced_download_threshold(15);
|
||||
new_h.set_sequenced_download_threshold(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue