From b4014535e8987c95e7d9183eee77b95f8bf30c57 Mon Sep 17 00:00:00 2001 From: Shisuys Date: Mon, 13 Jan 2025 10:23:50 -0300 Subject: [PATCH 1/5] change pixeldrain url to gamedrivers servers --- src/main/services/download/download-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index 134a74e6..8fda319e 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -263,7 +263,7 @@ export class DownloadManager { return { action: "start", game_id: game.id, - url: `https://pixeldrain.com/api/file/${id}?download`, + url: `https://cdn.pd5-gamedriveorg.workers.dev/api/file/${id}`, save_path: game.downloadPath!, }; } From 6da648b21c04594898c9b6e2a802123e500b7947 Mon Sep 17 00:00:00 2001 From: Shisuys Date: Sun, 26 Jan 2025 10:41:08 -0300 Subject: [PATCH 2/5] Create a downloader for the gamedrivers bypass --- src/main/services/download/download-manager.ts | 10 ++++++++++ src/renderer/src/constants.ts | 1 + src/shared/constants.ts | 1 + src/shared/index.ts | 1 + 4 files changed, 13 insertions(+) diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index 8fda319e..aa26ce06 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -260,6 +260,16 @@ export class DownloadManager { case Downloader.PixelDrain: { const id = game.uri!.split("/").pop(); + return { + action: "start", + game_id: game.id, + url: `https://pixeldrain.com/api/file/${id}?download`, + save_path: game.downloadPath!, + }; + } + case Downloader.GameDrive: { + const id = game.uri!.split("/").pop(); + return { action: "start", game_id: game.id, diff --git a/src/renderer/src/constants.ts b/src/renderer/src/constants.ts index d0797caf..a1d9919b 100644 --- a/src/renderer/src/constants.ts +++ b/src/renderer/src/constants.ts @@ -9,6 +9,7 @@ export const DOWNLOADER_NAME = { [Downloader.PixelDrain]: "PixelDrain", [Downloader.Qiwi]: "Qiwi", [Downloader.Datanodes]: "Datanodes", + [Downloader.GameDrive]: "GameDrive", }; export const MAX_MINUTES_TO_SHOW_IN_PLAYTIME = 120; diff --git a/src/shared/constants.ts b/src/shared/constants.ts index 6b332d40..cca1d3bc 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -5,6 +5,7 @@ export enum Downloader { PixelDrain, Qiwi, Datanodes, + GameDrive, } export enum DownloadSourceStatus { diff --git a/src/shared/index.ts b/src/shared/index.ts index 7d612a17..b22a3cac 100644 --- a/src/shared/index.ts +++ b/src/shared/index.ts @@ -88,6 +88,7 @@ export const getDownloadersForUri = (uri: string) => { if (uri.startsWith("https://pixeldrain.com")) return [Downloader.PixelDrain]; if (uri.startsWith("https://qiwi.gg")) return [Downloader.Qiwi]; if (uri.startsWith("https://datanodes.to")) return [Downloader.Datanodes]; + if (uri.startsWith("https://pd.cybar.xyz")) return [Downloader.GameDrive]; if (realDebridHosts.some((host) => uri.startsWith(host))) return [Downloader.RealDebrid]; From a3a1271b639063395790f393ec3f070635568d19 Mon Sep 17 00:00:00 2001 From: Lianela <140931995+Lianela@users.noreply.github.com> Date: Sat, 1 Feb 2025 02:57:51 -0300 Subject: [PATCH 3/5] updated es translation.json added missing strings --- src/locales/es/translation.json | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json index 931ee058..153d782b 100644 --- a/src/locales/es/translation.json +++ b/src/locales/es/translation.json @@ -175,7 +175,16 @@ "backup_from": "Copia de seguridad de {{date}}", "custom_backup_location_set": "Se configuró la carpeta de copia de seguridad", "clear": "Limpiar", - "no_directory_selected": "No se seleccionó un directorio" + "no_directory_selected": "No se seleccionó un directorio", + "launch_options": "Opciones de Inicio", + "launch_options_description": "Los usuarios avanzados pueden introducir sus propias modificaciones de opciones de inicio (característica experimental)", + "launch_options_placeholder": "Sin parámetro específicado", + "no_write_permission": "No se puede descargar en este directorio. Presiona aquí para aprender más.", + "reset_achievements": "Reiniciar logros", + "reset_achievements_description": "Esto reiniciará todos los logros de {{game}}", + "reset_achievements_title": "¿Estás seguro?", + "reset_achievements_success": "Logros reiniciados exitosamente", + "reset_achievements_error": "Se produjo un error al reiniciar los logros" }, "activation": { "title": "Activar Hydra", @@ -271,7 +280,23 @@ "launch_minimized": "Iniciar Hydra minimizado", "disable_nsfw_alert": "Desactivar alerta NSFW", "seed_after_download_complete": "Realizar seeding después de que se completa la descarga", - "show_hidden_achievement_description": "Ocultar descripción de logros ocultos antes de desbloquearlos" + "show_hidden_achievement_description": "Ocultar descripción de logros ocultos antes de desbloquearlos", + "account": "Cuenta", + "account_data_updated_successfully": "Datos de la cuenta actualizados", + "bill_sent_until": "Tú próxima factura se enviará el {{date}}", + "current_email": "Correo actual:", + "manage_subscription": "Gestionar suscripción", + "no_email_account": "No has configurado un correo aún", + "no_subscription": "Disfruta Hydra de la mejor manera", + "no_users_blocked": "No tienes usuarios bloqueados", + "notifications": "Notificaciones", + "renew_subscription": "Renovar Hydra Cloud", + "subscription_active_until": "Tú Hydra Cloud está activa hasta {{date}}", + "subscription_expired_at": "Tú suscripción expiró el {{date}}", + "subscription_renew_cancelled": "Está desactivada la renovación automática", + "subscription_renews_on": "Tú suscripción se renueva el {{date}}", + "update_email": "Actualizar correo", + "update_password": "Actualizar contraseña" }, "notifications": { "download_complete": "Descarga completada", From f37b1f3d12d04b53770629c87b431d17411f2cdd Mon Sep 17 00:00:00 2001 From: Lianela <140931995+Lianela@users.noreply.github.com> Date: Sat, 1 Feb 2025 03:38:31 -0300 Subject: [PATCH 4/5] Update src/locales/es/translation.json Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- src/locales/es/translation.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json index 153d782b..c8667d6c 100644 --- a/src/locales/es/translation.json +++ b/src/locales/es/translation.json @@ -291,7 +291,7 @@ "no_users_blocked": "No tienes usuarios bloqueados", "notifications": "Notificaciones", "renew_subscription": "Renovar Hydra Cloud", - "subscription_active_until": "Tú Hydra Cloud está activa hasta {{date}}", + "subscription_active_until": "Tu Hydra Cloud está activa hasta {{date}}", "subscription_expired_at": "Tú suscripción expiró el {{date}}", "subscription_renew_cancelled": "Está desactivada la renovación automática", "subscription_renews_on": "Tú suscripción se renueva el {{date}}", From 1ed13d8a91ee744a9fb58332ee3c641a42ad5620 Mon Sep 17 00:00:00 2001 From: Shisuys Date: Sat, 1 Feb 2025 16:20:14 -0300 Subject: [PATCH 5/5] Revert "Create a downloader for the gamedrivers bypass" This reverts commit 6da648b21c04594898c9b6e2a802123e500b7947. --- src/main/services/download/download-manager.ts | 10 ---------- src/renderer/src/constants.ts | 1 - src/shared/constants.ts | 1 - src/shared/index.ts | 1 - 4 files changed, 13 deletions(-) diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index aa26ce06..8fda319e 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -260,16 +260,6 @@ export class DownloadManager { case Downloader.PixelDrain: { const id = game.uri!.split("/").pop(); - return { - action: "start", - game_id: game.id, - url: `https://pixeldrain.com/api/file/${id}?download`, - save_path: game.downloadPath!, - }; - } - case Downloader.GameDrive: { - const id = game.uri!.split("/").pop(); - return { action: "start", game_id: game.id, diff --git a/src/renderer/src/constants.ts b/src/renderer/src/constants.ts index a1d9919b..d0797caf 100644 --- a/src/renderer/src/constants.ts +++ b/src/renderer/src/constants.ts @@ -9,7 +9,6 @@ export const DOWNLOADER_NAME = { [Downloader.PixelDrain]: "PixelDrain", [Downloader.Qiwi]: "Qiwi", [Downloader.Datanodes]: "Datanodes", - [Downloader.GameDrive]: "GameDrive", }; export const MAX_MINUTES_TO_SHOW_IN_PLAYTIME = 120; diff --git a/src/shared/constants.ts b/src/shared/constants.ts index e22c0c2c..f2bcc793 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -5,7 +5,6 @@ export enum Downloader { PixelDrain, Qiwi, Datanodes, - GameDrive, } export enum DownloadSourceStatus { diff --git a/src/shared/index.ts b/src/shared/index.ts index b22a3cac..7d612a17 100644 --- a/src/shared/index.ts +++ b/src/shared/index.ts @@ -88,7 +88,6 @@ export const getDownloadersForUri = (uri: string) => { if (uri.startsWith("https://pixeldrain.com")) return [Downloader.PixelDrain]; if (uri.startsWith("https://qiwi.gg")) return [Downloader.Qiwi]; if (uri.startsWith("https://datanodes.to")) return [Downloader.Datanodes]; - if (uri.startsWith("https://pd.cybar.xyz")) return [Downloader.GameDrive]; if (realDebridHosts.some((host) => uri.startsWith(host))) return [Downloader.RealDebrid];