Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phr33d0m/1f0c13e9c7e3e8fa8a512056461fb06c to your computer and use it in GitHub Desktop.
Save Phr33d0m/1f0c13e9c7e3e8fa8a512056461fb06c to your computer and use it in GitHub Desktop.
qBittorrent always use sequential downloading (>=v4.1.2)
diff --git a/src/base/bittorrent/addtorrentparams.h b/src/base/bittorrent/addtorrentparams.h
index 280849a..c5e4d2c 100644
--- a/src/base/bittorrent/addtorrentparams.h
+++ b/src/base/bittorrent/addtorrentparams.h
@@ -43,7 +43,7 @@ namespace BitTorrent
QSet<QString> tags;
QString savePath;
bool disableTempPath = false; // e.g. for imported torrents
- bool sequential = false;
+ bool sequential = true;
bool firstLastPiecePriority = false;
TriStateBool addForced;
TriStateBool addPaused;
@Phr33d0m
Copy link
Author

Phr33d0m commented Aug 14, 2018

For the qbittorrent-git AUR package, change only these PKGBUILD pieces:

source=(
  "${pkgname%-*}::git+https://github.com/qbittorrent/qBittorrent.git"
  "https://gist.githubusercontent.com/Phr33d0m/1f0c13e9c7e3e8fa8a512056461fb06c/raw/fa49017a2baff5fe191c7d9a3cc034e4fec5d960/qBittorrent-sequential-downloading-always-true.diff"
)
sha256sums=(
  'SKIP'
  'SKIP'
)

build() {
  cd ${pkgname%-*}
  
  patch -Np1 -i ../qBittorrent-sequential-downloading-always-true.diff

  ./configure --prefix=/usr
  make
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment