The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(bt): 新增 XIU2 作为第二个默认 Web Tracker 源
XiaoYouChR93429d731dad
diff --git a/features/bittorrent_pack/config.py b/features/bittorrent_pack/config.pyindex 722d75ee..f12eb8a4 100644--- a/features/bittorrent_pack/config.py+++ b/features/bittorrent_pack/config.py@@ -11,7 +11,7 @@ from qfluentwidgets import ()from .web_tracker.schema import (- DEFAULT_WEB_TRACKER_SOURCE,+ DEFAULT_WEB_TRACKER_SOURCES,SourceCacheSerializer,SourceCacheValidator,)@@ -45,7 +45,7 @@ class BitTorrentConfig(PackConfig):)associateFileTypes = ConfigItem("BitTorrent", "AssociateFileTypes", False, BoolValidator())webTrackerSources = ConfigItem(- "BitTorrent", "WebTrackerSources", [DEFAULT_WEB_TRACKER_SOURCE], StringListValidator(),+ "BitTorrent", "WebTrackerSources", DEFAULT_WEB_TRACKER_SOURCES, StringListValidator(),)webTrackerSourceCache = ConfigItem("BitTorrent", "WebTrackerSourceCache", {}, SourceCacheValidator(), SourceCacheSerializer(),diff --git a/features/bittorrent_pack/web_tracker/dialog.py b/features/bittorrent_pack/web_tracker/dialog.pyindex 70325873..10bf050d 100644--- a/features/bittorrent_pack/web_tracker/dialog.py+++ b/features/bittorrent_pack/web_tracker/dialog.py@@ -16,7 +16,7 @@ from qfluentwidgets import (from app.config.cfg import cfgfrom app.view.components.editors import AutoSizingEditfrom ..config import bittorrentConfig-from .schema import DEFAULT_WEB_TRACKER_SOURCE+from .schema import DEFAULT_WEB_TRACKER_SOURCESTRACKER_SCHEMES = {"http", "https", "udp", "ws", "wss"}@@ -54,7 +54,7 @@ class WebTrackerSourceCard(QWidget):def _initWidget(self, url: str, cachedCount: int | None):self.urlEdit.setText(url)- self.urlEdit.setPlaceholderText(DEFAULT_WEB_TRACKER_SOURCE)+ self.urlEdit.setPlaceholderText(DEFAULT_WEB_TRACKER_SOURCES[0])self.setCachedCount(cachedCount)def _initLayout(self):diff --git a/features/bittorrent_pack/web_tracker/schema.py b/features/bittorrent_pack/web_tracker/schema.pyindex 2532e6c4..686baa64 100644--- a/features/bittorrent_pack/web_tracker/schema.py+++ b/features/bittorrent_pack/web_tracker/schema.py@@ -2,7 +2,10 @@ import jsonfrom qfluentwidgets import ConfigSerializer, ConfigValidator-DEFAULT_WEB_TRACKER_SOURCE = "https://cf.trackerslist.com/best.txt"+DEFAULT_WEB_TRACKER_SOURCES = [+ "https://cf.trackerslist.com/best.txt",+ "https://cdn.jsdelivr.net/gh/XIU2/TrackersListCollection/best.txt",+]class SourceCacheValidator(ConfigValidator):