The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(BitTorrent): 修复 Android 上 bittorrent_pack 无法加载
XiaoYouChRf3166bf6b6c6
diff --git a/features/bittorrent_pack/session.py b/features/bittorrent_pack/session.pyindex e4990eb1..bd78ede8 100644--- a/features/bittorrent_pack/session.py+++ b/features/bittorrent_pack/session.py@@ -60,9 +60,9 @@ LIVE_SETTINGS = ()ENCRYPTION_MODES = {- "enabled": (lt.enc_policy.enabled, lt.enc_level.both, True),- "forced": (lt.enc_policy.forced, lt.enc_level.rc4, True),- "disabled": (lt.enc_policy.disabled, lt.enc_level.both, False),+ "enabled": (lt.enc_policy.pe_enabled, lt.enc_level.pe_both, True),+ "forced": (lt.enc_policy.pe_forced, lt.enc_level.pe_rc4, True),+ "disabled": (lt.enc_policy.pe_disabled, lt.enc_level.pe_both, False),}diff --git a/tests/bittorrent_pack/test_session.py b/tests/bittorrent_pack/test_session.pyindex 786372a7..d8717c75 100644--- a/tests/bittorrent_pack/test_session.py+++ b/tests/bittorrent_pack/test_session.py@@ -49,9 +49,9 @@ def test_build_utp_for_both_directions(monkeypatch, isEnabled):@pytest.mark.parametrize(("mode", "policy", "level", "preferRc4"),[- ("enabled", lt.enc_policy.enabled, lt.enc_level.both, True),- ("forced", lt.enc_policy.forced, lt.enc_level.rc4, True),- ("disabled", lt.enc_policy.disabled, lt.enc_level.both, False),+ ("enabled", lt.enc_policy.pe_enabled, lt.enc_level.pe_both, True),+ ("forced", lt.enc_policy.pe_forced, lt.enc_level.pe_rc4, True),+ ("disabled", lt.enc_policy.pe_disabled, lt.enc_level.pe_both, False),],)def test_build_encryption_mode(monkeypatch, mode, policy, level, preferRc4):