-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: torbox integration #1439
feat: torbox integration #1439
Conversation
# Conflicts: # src/renderer/src/constants.ts # src/shared/constants.ts
# Conflicts: # src/locales/en/translation.json # src/locales/pt-BR/translation.json # src/main/entity/user-preferences.entity.ts # src/main/events/auth/sign-out.ts # src/main/knex-client.ts # src/main/main.ts # src/main/services/download/download-manager.ts # src/main/services/process-watcher.ts # src/renderer/src/pages/downloads/download-group.tsx # src/types/index.ts # src/types/torbox.types.ts
# Conflicts: # src/renderer/src/pages/downloads/download-group.tsx
# Conflicts: # src/renderer/src/constants.ts # src/shared/constants.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
(updates since last review)
This PR integrates TorBox as a new download source in Hydra Launcher while modifying the save game upload functionality and removing PixelDrain filename fetching.
- Added TorBox client integration in
src/main/services/download/download-manager.ts
with newgetDownloadInfo
method for handling TorBox-specific downloads - Removed direct PixelDrain API calls and simplified to use CDN worker URL in download manager
- Modified
uploadSaveGame
insrc/main/events/cloud-save/upload-save-game.ts
to be a local function instead of exported - Added tar archive creation and upload functionality for game save backups with proper cleanup
- Streamlined download payload handling by removing unnecessary axios dependency
2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
if (!url) return; | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Missing error handling when url is undefined. Should throw an error with meaningful message like other downloaders do.
if (!url) return; | |
return { | |
if (!url) throw new Error("Failed to get download URL from TorBox"); | |
return { |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.