The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
refactor(config): 将绑定文件打开方式移到最前面
XiaoYouChR5bfe528d6581
diff --git a/features/bittorrent_pack/config.py b/features/bittorrent_pack/config.pyindex 8c805da8..32059320 100644--- a/features/bittorrent_pack/config.py+++ b/features/bittorrent_pack/config.py@@ -80,6 +80,16 @@ class BitTorrentConfig(PackConfig):from .web_tracker.card import WebTrackerCardself.bittorrentGroup = CollapsibleSettingCardGroup(self.tr("BitTorrent 下载"), "bittorrent", settingPage.container)+ # macOS 的文件关联在构建时烘进 Info.plist, 运行时开关无意义, 不创建也不显示+ if sys.platform != "darwin":+ self.associateCard = SwitchSettingCard(+ FluentIcon.LINK,+ self.tr("关联 .torrent 文件"),+ self.tr("把 .torrent 文件的打开方式设为 Ghost Downloader"),+ self.associateFileTypes,+ self.bittorrentGroup,+ )+ self.bittorrentGroup.addSettingCard(self.associateCard)self.listenPortCard = SpinBoxSettingCard(FluentIcon.GLOBE,self.tr("监听端口"),@@ -230,17 +240,6 @@ class BitTorrentConfig(PackConfig):):self.bittorrentGroup.addSettingCard(card)- # macOS 的文件关联在构建时烘进 Info.plist, 运行时开关无意义, 不创建也不显示- if sys.platform != "darwin":- self.associateCard = SwitchSettingCard(- FluentIcon.LINK,- self.tr("关联 .torrent 文件"),- self.tr("把 .torrent 文件的打开方式设为 Ghost Downloader"),- self.associateFileTypes,- self.bittorrentGroup,- )- self.bittorrentGroup.addSettingCard(self.associateCard)-settingPage.addSettingGroup(self.bittorrentGroup)diff --git a/features/m3u8_pack/config.py b/features/m3u8_pack/config.pyindex d61f697b..6925158f 100644--- a/features/m3u8_pack/config.py+++ b/features/m3u8_pack/config.py@@ -162,6 +162,16 @@ class M3U8Config(PackConfig):def setupSettings(self, settingPage: "SettingPage"):self.m3u8Group = CollapsibleSettingCardGroup(self.tr("流媒体下载"), "m3u8", settingPage.container)+ # macOS 的文件关联在构建时烘进 Info.plist, 运行时开关无意义, 不创建也不显示+ if sys.platform != "darwin":+ self.associateCard = SwitchSettingCard(+ FluentIcon.LINK,+ self.tr("关联 M3U8/MPD 文件"),+ self.tr("把 .m3u8/.m3u/.mpd 文件的打开方式设为 Ghost Downloader"),+ self.associateFileTypes,+ self.m3u8Group,+ )+ self.m3u8Group.addSettingCard(self.associateCard)self.installFolderCard = InstallFolderCard(m3u8Config.installFolder,f"{APP_DATA_DIR}/M3U8DL",@@ -277,17 +287,6 @@ class M3U8Config(PackConfig):):self.m3u8Group.addSettingCard(card)- # macOS 的文件关联在构建时烘进 Info.plist, 运行时开关无意义, 不创建也不显示- if sys.platform != "darwin":- self.associateCard = SwitchSettingCard(- FluentIcon.LINK,- self.tr("关联 M3U8/MPD 文件"),- self.tr("把 .m3u8/.m3u/.mpd 文件的打开方式设为 Ghost Downloader"),- self.associateFileTypes,- self.m3u8Group,- )- self.m3u8Group.addSettingCard(self.associateCard)-settingPage.addSettingGroup(self.m3u8Group)self.runtimeCard.refreshStatus()