Skip to content

A full-featured download manager.

chore: improve aria2 bt config

Dr_rOotf9755f69cd9e
diff --git a/extra/darwin/engine/aria2.conf b/extra/darwin/engine/aria2.conf
index 52929e8d..c84495e1 100644
--- a/extra/darwin/engine/aria2.conf
+++ b/extra/darwin/engine/aria2.conf
@@ -51,6 +51,8 @@ bt-force-encryption=true
bt-hash-check-seed=true
# Specify the maximum number of peers per torrent.
bt-max-peers=255
+# Try to download first and last pieces of each file first. This is useful for previewing files.
+bt-prioritize-piece=head
# Removes the unselected files when download is completed in BitTorrent.
bt-remove-unselected-file=true
# Seed previously downloaded files without verifying piece hashes.
diff --git a/extra/linux/engine/aria2.conf b/extra/linux/engine/aria2.conf
index c124eaf8..7a67d852 100644
--- a/extra/linux/engine/aria2.conf
+++ b/extra/linux/engine/aria2.conf
@@ -51,6 +51,8 @@ bt-force-encryption=true
bt-hash-check-seed=true
# Specify the maximum number of peers per torrent.
bt-max-peers=255
+# Try to download first and last pieces of each file first. This is useful for previewing files.
+bt-prioritize-piece=head
# Removes the unselected files when download is completed in BitTorrent.
bt-remove-unselected-file=true
# Seed previously downloaded files without verifying piece hashes.
diff --git a/extra/win32/engine/aria2.conf b/extra/win32/engine/aria2.conf
index a17f93a3..bafd460f 100644
--- a/extra/win32/engine/aria2.conf
+++ b/extra/win32/engine/aria2.conf
@@ -51,6 +51,8 @@ bt-force-encryption=true
bt-hash-check-seed=true
# Specify the maximum number of peers per torrent.
bt-max-peers=255
+# Try to download first and last pieces of each file first. This is useful for previewing files.
+bt-prioritize-piece=head
# Removes the unselected files when download is completed in BitTorrent.
bt-remove-unselected-file=true
# Seed previously downloaded files without verifying piece hashes.
diff --git a/src/main/core/ConfigManager.js b/src/main/core/ConfigManager.js
index 438106f5..fa762e49 100644
--- a/src/main/core/ConfigManager.js
+++ b/src/main/core/ConfigManager.js
@@ -49,6 +49,7 @@ export default class ConfigManager {
'all-proxy': EMPTY_STRING,
'allow-overwrite': false,
'auto-file-renaming': true,
+ 'bt-exclude-tracker': EMPTY_STRING,
'bt-tracker': EMPTY_STRING,
'continue': true,
'dht-file-path': getDhtPath(IP_VERSION.V4),