Clean garbage

This commit is contained in:
mircea32000 2025-02-10 23:21:18 +02:00
parent fa9b6f0d38
commit c0964d96a1
4 changed files with 3 additions and 50 deletions

View file

@ -44,5 +44,5 @@ class HttpDownloader:
'status': download.status, 'status': download.status,
'bytesDownloaded': download.completed_length, 'bytesDownloaded': download.completed_length,
} }
print("HTTP_DOWNLOADER_STATUS: ", response)
return response return response

View file

@ -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",
};

View file

@ -27,11 +27,6 @@
&__downloader-option { &__downloader-option {
position: relative; 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 { &:only-child {
grid-column: 1 / -1; grid-column: 1 / -1;
@ -41,8 +36,6 @@
&__downloader-icon { &__downloader-icon {
position: absolute; position: absolute;
left: calc(globals.$spacing-unit * 2); left: calc(globals.$spacing-unit * 2);
top: 50%;
transform: translateY(-50%);
} }
&__path-error { &__path-error {
@ -56,4 +49,4 @@
&__change-path-button { &__change-path-button {
align-self: flex-end; align-self: flex-end;
} }
} }

View file

@ -181,31 +181,4 @@ export interface AllDebridUser {
email: string; email: string;
isPremium: boolean; isPremium: boolean;
premiumUntil: string; 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;
}