Browse Source

BUGFIX: Improved incremental download

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
b4fbaaa47c
  1. 1
      Changelog
  2. 1
      TODO
  3. 4
      src/bittorrent.cpp

1
Changelog

@ -47,6 +47,7 @@ @@ -47,6 +47,7 @@
- BUGFIX: The number of search results was not reset when clicking on 'Clear' button
- BUGFIX: Update torrent progress when its content changed (filtered files)
- BUGFIX: Improved the way menu icons are installed to avoid problems on some systems
- BUGFIX: Improved incremental download
- COSMETIC: Redesigned torrent properties a little
- COSMETIC: Redesigned options a little
- COSMETIC: Display more logs messages concerning features

1
TODO

@ -78,5 +78,6 @@ beta4->beta5 changelog: @@ -78,5 +78,6 @@ beta4->beta5 changelog:
- BUGFIX: Fixed the way icons are installed to avoid problems on some systems
- BUGFIX: Fixed qBittorrent version in .desktop file
- BUGFIX: Fixed session ratio value (was either 10. or 1.)
- BUGFIX: Improved incremental download
- I18N: Updated Italian, Polish, Portuguese, Brazilian translations
- COSMETIC: Changed the way progress bars are rendered

4
src/bittorrent.cpp

@ -386,7 +386,7 @@ void bittorrent::addTorrent(QString path, bool fromScanDir, QString from_url){ @@ -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){ @@ -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…
Cancel
Save