mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adjustments
This commit is contained in:
parent
d8e322e022
commit
ddbb2483c6
4 changed files with 10 additions and 6 deletions
|
@ -297,7 +297,8 @@
|
||||||
"become_subscriber": "Be Hydra Cloud",
|
"become_subscriber": "Be Hydra Cloud",
|
||||||
"subscription_renew_cancelled": "Automatic renewal is disabled",
|
"subscription_renew_cancelled": "Automatic renewal is disabled",
|
||||||
"subscription_renews_on": "Your subscription renews on {{date}}",
|
"subscription_renews_on": "Your subscription renews on {{date}}",
|
||||||
"bill_sent_until": "Your next bill will be sent until this day"
|
"bill_sent_until": "Your next bill will be sent until this day",
|
||||||
|
"enable_torbox": "Enable Torbox"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Download complete",
|
"download_complete": "Download complete",
|
||||||
|
|
|
@ -286,7 +286,8 @@
|
||||||
"become_subscriber": "Seja Hydra Cloud",
|
"become_subscriber": "Seja Hydra Cloud",
|
||||||
"subscription_renew_cancelled": "A renovação automática está desativada",
|
"subscription_renew_cancelled": "A renovação automática está desativada",
|
||||||
"subscription_renews_on": "Sua assinatura renova dia {{date}}",
|
"subscription_renews_on": "Sua assinatura renova dia {{date}}",
|
||||||
"bill_sent_until": "Sua próxima cobrança será enviada até esse dia"
|
"bill_sent_until": "Sua próxima cobrança será enviada até esse dia",
|
||||||
|
"enable_torbox": "Habilitar Torbox"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Download concluído",
|
"download_complete": "Download concluído",
|
||||||
|
|
|
@ -330,7 +330,6 @@ export class DownloadManager {
|
||||||
}
|
}
|
||||||
case Downloader.TorBox: {
|
case Downloader.TorBox: {
|
||||||
const { name, url } = await TorBoxClient.getDownloadInfo(download.uri);
|
const { name, url } = await TorBoxClient.getDownloadInfo(download.uri);
|
||||||
console.log(url, name);
|
|
||||||
|
|
||||||
if (!url) return;
|
if (!url) return;
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -93,8 +93,11 @@ export class TorBoxClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
static async getDownloadInfo(uri: string) {
|
static async getDownloadInfo(uri: string) {
|
||||||
const { id, name } = await this.getTorrentIdAndName(uri);
|
const torrentData = await this.getTorrentIdAndName(uri);
|
||||||
const url = await this.requestLink(id);
|
const url = await this.requestLink(torrentData.id);
|
||||||
return { url, name: `${name}.zip` };
|
|
||||||
|
const name = torrentData.name ? `${torrentData.name}.zip` : undefined;
|
||||||
|
|
||||||
|
return { url, name };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue