mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Clean garbage
This commit is contained in:
parent
fa9b6f0d38
commit
c0964d96a1
4 changed files with 3 additions and 50 deletions
|
@ -44,5 +44,5 @@ class HttpDownloader:
|
|||
'status': download.status,
|
||||
'bytesDownloaded': download.completed_length,
|
||||
}
|
||||
print("HTTP_DOWNLOADER_STATUS: ", response)
|
||||
|
||||
return response
|
|
@ -1,13 +0,0 @@
|
|||
import { Downloader } from "@shared";
|
||||
|
||||
export const DOWNLOADER_NAME: Record<Downloader, string> = {
|
||||
[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",
|
||||
};
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue