diff --git a/python_rpc/http_downloader.py b/python_rpc/http_downloader.py index 9dae7da3..c24f8ec8 100644 --- a/python_rpc/http_downloader.py +++ b/python_rpc/http_downloader.py @@ -44,5 +44,5 @@ class HttpDownloader: 'status': download.status, 'bytesDownloaded': download.completed_length, } - print("HTTP_DOWNLOADER_STATUS: ", response) + return response \ No newline at end of file diff --git a/src/renderer/src/constants/downloader.ts b/src/renderer/src/constants/downloader.ts deleted file mode 100644 index 0f94d594..00000000 --- a/src/renderer/src/constants/downloader.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Downloader } from "@shared"; - -export const DOWNLOADER_NAME: Record = { - [Downloader.Gofile]: "Gofile", - [Downloader.PixelDrain]: "PixelDrain", - [Downloader.Qiwi]: "Qiwi", - [Downloader.Datanodes]: "Datanodes", - [Downloader.Mediafire]: "Mediafire", - [Downloader.Torrent]: "Torrent", - [Downloader.RealDebrid]: "Real-Debrid", - [Downloader.AllDebrid]: "All-Debrid", - [Downloader.TorBox]: "TorBox", -}; \ No newline at end of file diff --git a/src/renderer/src/pages/game-details/modals/download-settings-modal.scss b/src/renderer/src/pages/game-details/modals/download-settings-modal.scss index 0917b120..a22183fa 100644 --- a/src/renderer/src/pages/game-details/modals/download-settings-modal.scss +++ b/src/renderer/src/pages/game-details/modals/download-settings-modal.scss @@ -27,11 +27,6 @@ &__downloader-option { position: relative; - padding: calc(globals.$spacing-unit * 1.5) calc(globals.$spacing-unit * 6); - text-align: left; - display: flex; - align-items: center; - min-width: 150px; &:only-child { grid-column: 1 / -1; @@ -41,8 +36,6 @@ &__downloader-icon { position: absolute; left: calc(globals.$spacing-unit * 2); - top: 50%; - transform: translateY(-50%); } &__path-error { @@ -56,4 +49,4 @@ &__change-path-button { align-self: flex-end; } -} +} \ No newline at end of file diff --git a/src/types/download.types.ts b/src/types/download.types.ts index 9550627a..07d066b9 100644 --- a/src/types/download.types.ts +++ b/src/types/download.types.ts @@ -181,31 +181,4 @@ export interface AllDebridUser { email: string; isPremium: boolean; premiumUntil: string; -} - -export enum Downloader { - Gofile = "gofile", - PixelDrain = "pixeldrain", - Qiwi = "qiwi", - Datanodes = "datanodes", - Mediafire = "mediafire", - Torrent = "torrent", - RealDebrid = "realdebrid", - AllDebrid = "alldebrid", - TorBox = "torbox", -} - -export enum DownloadError { - NotCachedInRealDebrid = "not_cached_in_realdebrid", - NotCachedInAllDebrid = "not_cached_in_alldebrid", - // ... alte erori existente -} - -export interface GamePayload { - action: string; - game_id: string; - url: string | string[]; // Modificăm pentru a accepta și array de URL-uri - save_path: string; - header?: string; - out?: string; -} +} \ No newline at end of file