feat: adding real debrid downloads

This commit is contained in:
Chubby Granny Chaser 2024-06-27 22:05:50 +01:00
parent 13644c60e8
commit 96e96cd8aa
No known key found for this signature in database
2 changed files with 3 additions and 6 deletions

View file

@ -125,9 +125,6 @@ export class RealDebridDownloader {
const response = await axios.get(downloadUrl, {
responseType: "stream",
signal: this.abortController.signal,
headers: {
Range: `bytes=0-`,
},
onDownloadProgress: (progressEvent) => {
this.lastProgressEvent = progressEvent;
},
@ -142,7 +139,7 @@ export class RealDebridDownloader {
{ folderName: filename }
);
response.data.pipe(fs.createWriteStream(downloadPath, { flags: "a" }));
response.data.pipe(fs.createWriteStream(downloadPath));
}
}