diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index cf7a313e..54047d33 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -297,7 +297,8 @@ "become_subscriber": "Be Hydra Cloud", "subscription_renew_cancelled": "Automatic renewal is disabled", "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": { "download_complete": "Download complete", diff --git a/src/locales/pt-BR/translation.json b/src/locales/pt-BR/translation.json index 6392937e..af0747ee 100644 --- a/src/locales/pt-BR/translation.json +++ b/src/locales/pt-BR/translation.json @@ -286,7 +286,8 @@ "become_subscriber": "Seja Hydra Cloud", "subscription_renew_cancelled": "A renovação automática está desativada", "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": { "download_complete": "Download concluído", diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index cc289067..b358d208 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -330,7 +330,6 @@ export class DownloadManager { } case Downloader.TorBox: { const { name, url } = await TorBoxClient.getDownloadInfo(download.uri); - console.log(url, name); if (!url) return; return { diff --git a/src/main/services/download/torbox.ts b/src/main/services/download/torbox.ts index b0d339dd..8011cae8 100644 --- a/src/main/services/download/torbox.ts +++ b/src/main/services/download/torbox.ts @@ -93,8 +93,11 @@ export class TorBoxClient { } static async getDownloadInfo(uri: string) { - const { id, name } = await this.getTorrentIdAndName(uri); - const url = await this.requestLink(id); - return { url, name: `${name}.zip` }; + const torrentData = await this.getTorrentIdAndName(uri); + const url = await this.requestLink(torrentData.id); + + const name = torrentData.name ? `${torrentData.name}.zip` : undefined; + + return { url, name }; } }