Skip to content

feat(thunder&thunder_browser): fix deviceId generation & support offline download and update login interface #8569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dgscyg
Copy link
Contributor

@dgscyg dgscyg commented May 24, 2025

迅雷云盘

改动

  • 修复 DeviceID 自动生成相关的BUG

迅雷浏览器

改动

  • 修改了 登录接口 ,使用方法与 fix(thunder): fix login issue #8342 一致

  • 跟随官方,更新了相关参数

  • 根目录现在将展示为 迅雷云盘 根目录:因为官方已经将迅雷浏览器中的数据合并进入迅雷云盘中

  • 增加了 使用流畅播(Use fluent play) 开关,开启后将使用 流畅播 接口进行离线下载,否则将使用 云添加 接口进行离线

    • 额外说明

      • 流畅播:无法指定目录,文件都将保存到名为流畅播 的文件夹中
    • 迅雷浏览器会员 普通用户
      流畅播 无限量 每天三次
      云添加 每天 500 次 三次
    • 切换开关后,请重新设置 迅雷浏览器 离线下载目录

      • 后台 ==> 设置 ==> 其他

新增

  • 增加了对 离线下载 的支持

Copy link

Walkthrough: This PR addresses critical updates for the Thunder and Thunder Browser components. It fixes a bug in the automatic generation of DeviceID, updates the login interface to align with recent changes, and introduces support for offline downloads. Additionally, it modifies the root directory display to reflect the integration of Thunder Browser data into Thunder Cloud Disk.

Changes:

Files Summary
drivers/thunder/driver.go Fixed DeviceID generation logic by changing the hash input to use username and password. Updated client version retrieval.
drivers/thunder_browser/driver.go Added support for offline downloads, updated login logic, and cleared credit keys post-login.
drivers/thunder_browser/meta.go Updated algorithms and client version defaults. Added credit key handling.
drivers/thunder_browser/types.go Introduced new request and response types for core login and offline tasks.
drivers/thunder_browser/util.go Added constants for new API URLs and updated algorithm lists.
internal/conf/const.go Added a new constant for Thunder Browser temporary directory.
internal/offline_download/all.go Included Thunder Browser in the offline download module.
internal/offline_download/thunder_browser/thunder_browser.go Implemented Thunder Browser offline download functionalities.
internal/offline_download/thunder_browser/util.go Added caching and task retrieval logic for Thunder Browser.
internal/offline_download/tool/add.go Integrated Thunder Browser into the download tool addition logic.
internal/offline_download/tool/download.go Updated download transfer logic to include Thunder Browser.
server/handles/offline_download.go Added handler for setting Thunder Browser configurations.
server/router.go Registered new route for Thunder Browser settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant