-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Adds TorBox Support #946
base: main
Are you sure you want to change the base?
Adds TorBox Support #946
Conversation
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.
This is a general change. Virtual environments should be ignored.
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.
Please review these comments
@@ -8,6 +8,11 @@ module.exports = { | |||
"@electron-toolkit/eslint-config-ts/recommended", | |||
"plugin:prettier/recommended", | |||
], | |||
settings: { |
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.
I was getting build errors if this wasn't done. If it works without it, don't hesitate to remove it.
import { HttpDownload } from "./http-download"; | ||
import { GenericHttpDownloader } from "./generic-http-downloader"; | ||
import { gameRepository } from "@main/repository"; | ||
// import { calculateETA } from "./helpers"; |
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.
No need for calculating ETA. Left it here in case in the future TorBox gives a definite file size for zips.
numPeers: 0, | ||
numSeeds: 0, | ||
downloadSpeed: status.downloadSpeed, | ||
timeRemaining: -1, |
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.
Time remaining is -1 always. No way to know for sure.
const status = download.getStatus(); | ||
|
||
if (status) { | ||
let progress = |
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.
Progress is 0 since we can't know the completed file size.
Can't promise we will be able to review and test your PR properly until the next release (this saturday) as we are rushing with it |
any update @zamitto ? |
@@ -98,6 +98,7 @@ export const Hydra2_0_3: HydraMigration = { | |||
table.text("downloadsPath"); | |||
table.text("language").notNullable().defaultTo("en"); | |||
table.text("realDebridApiToken"); | |||
table.text("torboxApiToken"); |
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.
you actually need to create a new migration file, and import it in src/main/knex-client.ts
Co-authored-by: Zamitto <[email protected]>
Please implement this, RealDebrid is actively removing torrents and hosters. This will result in it being unusable for Hydra Launcher. There's an influx of RealDebrid users migrating to TorBox. Reference: https://x.com/RealDebrid/status/1859673163681960169 |
Allows downloading using TorBox.
Lemme know if any work needs done. If you want to test, you can sign up with a free account on TorBox.app, or contact me @WAMY on Discord for Pro keys (developers on this pull only).
closes #935
closes #1255