feat: adding real debrid downloads

This commit is contained in:
Chubby Granny Chaser 2024-06-27 21:52:04 +01:00
parent a1e41ea464
commit 13644c60e8
No known key found for this signature in database
3 changed files with 203 additions and 46 deletions

View file

@ -8,9 +8,9 @@ import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity
import { calculateETA } from "./helpers";
import axios from "axios";
import {
type CancelDownloadPayload,
type StartDownloadPayload,
type PauseDownloadPayload,
CancelDownloadPayload,
StartDownloadPayload,
PauseDownloadPayload,
LibtorrentStatus,
LibtorrentPayload,
} from "./types";
@ -67,6 +67,7 @@ export class TorrentDownloader {
bytesDownloaded,
fileSize,
progress,
status: "active",
};
await gameRepository.update(