Skip to content
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

Merged
merged 25 commits into from
Feb 2, 2025
Merged

feat: torbox integration #1439

merged 25 commits into from
Feb 2, 2025

Conversation

zamitto
Copy link
Collaborator

@zamitto zamitto commented Feb 1, 2025

No description provided.

# 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
@zamitto zamitto mentioned this pull request Feb 1, 2025
4 tasks
@zamitto zamitto changed the base branch from main to feat/migration-to-leveldb February 1, 2025 21:35
@zamitto
Copy link
Collaborator Author

zamitto commented Feb 1, 2025

@greptileai

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 new getDownloadInfo method for handling TorBox-specific downloads
  • Removed direct PixelDrain API calls and simplified to use CDN worker URL in download manager
  • Modified uploadSaveGame in src/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

Comment on lines +338 to +339
if (!url) return;
return {
Copy link
Contributor

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.

Suggested change
if (!url) return;
return {
if (!url) throw new Error("Failed to get download URL from TorBox");
return {

Base automatically changed from feat/migration-to-leveldb to main February 2, 2025 00:10
Copy link

sonarqubecloud bot commented Feb 2, 2025

Copy link
Contributor

@thegrannychaseroperation thegrannychaseroperation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zamitto zamitto merged commit a22be44 into main Feb 2, 2025
3 of 4 checks passed
@zamitto zamitto deleted the feature/torbox-integration branch February 2, 2025 00:45
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.

2 participants