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,
'bytesDownloaded': download.completed_length,
}
print("HTTP_DOWNLOADER_STATUS: ", 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 {
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 {

View file

@ -182,30 +182,3 @@ export interface AllDebridUser {
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;
}