feat(settings): 添加速度单位设置(1000/1024 进制) - #558
Open
bilixuesheng wants to merge 61 commits into
Open
Conversation
- 引入 TaskError 和 StepError 类,替代原有的字符串错误表示 - 修改 TaskStep 的 setError 方法以接受 StepError 对象 - 更新所有功能模块中的错误处理逻辑,统一使用 TaskError 异常 - 在 UI 层添加错误消息的国际化支持 - 优化协程运行器中的错误字符串转换逻辑 - 为各功能模块添加专门的错误目录文件用于翻译 - 重构 BTTask 和其他任务类型的错误处理流程 - 统一各任务步骤的异常捕获和传递机制 - 修改任务状态更新逻辑以正确处理错误状态 - 添加对 BaseExceptionGroup 的特殊处理机制
- 在 m3u8_pack/cards.py 中导入 ToolTipFilter 并为 toggleButton 和 keyFileButton 安装事件过滤器 - 在 option_cards.py 中导入 ToolTipFilter 并为 resetButton 安装事件过滤器 - 提升工具提示的显示质量和用户体验
- 添加 notifyDiskSpaceInsufficient 函数用于显示磁盘空间不足通知 - 在 Android 和桌面平台上实现磁盘空间不足通知功能 - 将所有通知文本替换为多语言翻译支持 - 连接 taskService.diskSpaceInsufficient 信号到通知函数 - 移除原有的磁盘空间不足信息栏显示逻辑 - 更新通知标题和消息文本为多语言格式
- 在 resources.qrc 中添加 gd3.pt_BR.qm 文件引用 - 重构 sync_i18n_res.py 脚本,优化代码结构和路径处理 - 添加新的 translate_i18n.py 脚本用于自动翻译功能 - 集成 DeepSeek API 实现多语言自动翻译 - 支持并发翻译多个语言区域设置 - 添加翻译状态检查和错误处理机制
- 将 ToolTipFilter 的安装从条件判断中移至初始化方法 - 确保事件过滤器在组件初始化时统一安装 - 移除重复的事件过滤器安装代码 - 保持按钮工具提示功能的正常工作
- 将 RangeSettingCard 替换为 SpinBoxSettingCard 组件 - 移除单位标识符 KB 的硬编码显示 - 添加单步调整值为 64 的增量控制 - 优化设置项标题文字表述 - 保持原有的配置绑定和功能逻辑不变
- 新增 ADR 0004:Android 弹窗必须为子控件而非顶级窗口 - 新增 ADR 0005:Android 原生二进制文件通过 linker64 执行 - 新增 ADR 0006:Android 包名定义 - 添加 Android 构建说明文档,包含 Docker CI、模板补丁、自定义配方等内容
- HeaderSnapshot 增加 size 字段,从 onResponseStarted 缓存 Content-Length - routeBrowserDownload fallback 链末尾补上 headerSnapshot.size - 唤醒桌面端按钮改为始终显示
- 错误模板从英文改为中文,与 source-language zh_CN 一致 - 中文用户无需翻译即可看到正确消息 - binary 未安装提示引导用户去设置中安装
- app/startup.py 统一 loadEngine/startEngine/stopEngine - 磁盘空间不足改为系统通知,不依赖窗口可见 - Android 保活绑定提前到 resumeSaved 前 - Android 浏览器扩展动态切换修复 - 通知和保活文案国际化 - Android 启动时检查更新
- 替换失效源(ghproxy.vip、gh.llkk.cc、ghproxy.homeboyc.cn)为实测可用的 gh-proxy.org、gh.ddlc.top、ghfast.top - 探测改用 HEAD 请求 Release URL, 能准确筛出不支持下载的半残站 - 区分"不可用"(403/404)和"超时"(网络问题)两种失败状态
- 每个设置分组标题前加图标,主程序用 AppIcon,Pack 各自维护独立 QRC 图标 - 修复 fractional DPI 下边框/分隔线渲染不一致:圆角矩形用整数内缩,分隔线用 fillRect - 统一浅色模式边框颜色为 rgba(0,0,0,24) - OutputFolderCard 改用 FolderPicker 支持历史路径选择 - 补全缺失的 ToolTipFilter 安装 - 打包脚本排除 SVG/QRC 源文件
Python 3.3+ 命名空间包不需要 __init__.py 即可 import
- 恢复 GitHub Alert callout 渲染(NOTE/TIP/IMPORTANT/WARNING/CAUTION) - 修复超链接颜色对比度过低的问题 - 修复发布对话框文件名被截断的问题
- 确认按钮触发应用内下载,更新流程函数集中到 app/update.py - assetScore 识别 Android 平台和 .apk 格式 - TaskDraftDialog 在 Android 上禁用背景拖拽
- revealInFolder 改用 SHOpenFolderAndSelectItems 替代 explorer.exe /select, - 调用前 SendInput 空鼠标事件绕过 Win11 前台限制 (PowerToys 方案) - browser_service 移除无效的 requestForeground 调用
- 添加了 originalSaveFile 函数引用 - 实现了 resolveSaveFileName 函数来处理保存文件路径 - 将 resolveSaveFileName 绑定到 QFileDialog.getSaveFileName 方法 - 扩展了文件对话框补丁以支持保存文件操作
- 为PermissionBanner构造函数增加可选的text参数 - 当传入自定义文本时使用该文本,否则使用默认提示 - 保持原有的存储权限提示作为默认值 - 允许在不同场景下显示不同的权限提醒内容 - 维持现有的按钮和布局结构不变
- 移除所有函数中的 IS_ANDROID 检查逻辑 - 简化 nativeLibraryDir 函数返回类型定义 - 简化 isSystemDark 函数返回类型定义 - 移除 isStorageGranted 中的非 Android 平台默认返回值 - 移除 requestStoragePermission 中的非 Android 平台提前返回 - 移除 openFile 和 openFolder 中的平台检查逻辑 - 移除 sharedText 和 clearShare 中的平台检查逻辑
- headersForPage 返回 snapshot 全部白名单头,不再只过滤 cookie + user-agent
- 214 个硬编码中文字符串迁移到 chrome.i18n.getMessage - 7 个语言的 _locales/messages.json(zh_CN, en_US, ja, ru, zh_TW, zh_HK, pt_BR) - manifest 添加 default_locale,name/description 走 i18n - crowdin-browser.yml 配置 + GitHub Actions 推拉工作流 - translate_i18n.py 支持 --browser 标志翻译浏览器扩展
- 位置优先视频上方右对齐,fallback 到下方、右侧、左侧 - z-index 提到 2147483647(CSS 最大值)
- IPC 改用独立隐藏窗口接收消息,不再依赖 MainWindow 存在 - MainWindow 移除 WM_USER_WAKE / WM_COPYDATA 处理 - 修复 nativeEvent 中 raiseWindow 未导入的 bug
- 在资源文件中添加了新的国际化语言包配置 - 为中文简体和英语美国版本添加了对应的qm文件映射 - 优化了资源配置结构以支持多语言切换功能
- Route fetched HTTP metadata through FeatureService - Let BitTorrent parse fetched torrent data without HTTP ownership - Fix file:// torrent paths and reject empty torrent files clearly
- 覆写 matchPassive 限制为 /video/BVxxx 或 /video/avxxx 路径 - 避免复制 bilibili 首页/专栏/搜索等非视频链接时误弹下载窗口 - 其他 parser 的 passive 行为保持不变
在个性化设置中新增下拉框,允许用户选择速度显示单位: - 1000 KB = 1 MB(网络标准,默认) - 1024 KB = 1 MB(二进制) - 新增 cfg.speedUnit 配置项 - 新增 format.toReadableSpeed(),保留 toDockSpeed() 并统一接受 divisor 参数 - 任务卡片与 macOS Dock 速度显示均读取该设置 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
XiaoYouChR
force-pushed
the
main
branch
7 times, most recently
from
July 11, 2026 19:59
f786fdb to
29af5d2
Compare
XiaoYouChR
force-pushed
the
main
branch
6 times, most recently
from
July 22, 2026 08:42
686fb4e to
234471c
Compare
XiaoYouChR
force-pushed
the
main
branch
7 times, most recently
from
July 31, 2026 11:11
a1e3825 to
bb5e21d
Compare
XiaoYouChR
force-pushed
the
main
branch
6 times, most recently
from
August 14, 2026 19:32
93d14e1 to
9e065d9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 描述
在个性化设置中新增下拉框,允许用户选择速度显示单位:
1000 KB = 1 MB(网络标准,默认)
1024 KB = 1 MB(二进制)
新增 cfg.speedUnit 配置项
新增 format.toReadableSpeed(),保留 toDockSpeed() 并统一接受 divisor 参数
任务卡片与 macOS Dock 速度显示均读取该设置
PR 类型
PR 检查清单
备注