mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: setting folder name
This commit is contained in:
parent
4d60317475
commit
4b7a0ff402
3 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@ export class GenericHTTPDownloader {
|
||||||
fileSize: Number(status.totalLength),
|
fileSize: Number(status.totalLength),
|
||||||
progress,
|
progress,
|
||||||
status: "active",
|
status: "active",
|
||||||
|
folderName: status.folderName,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ export class HTTPDownload {
|
||||||
completedLength: number;
|
completedLength: number;
|
||||||
totalLength: number;
|
totalLength: number;
|
||||||
downloadSpeed: number;
|
downloadSpeed: number;
|
||||||
|
folderName: string;
|
||||||
} | null {
|
} | null {
|
||||||
const downloadItem = this.downloads[gid];
|
const downloadItem = this.downloads[gid];
|
||||||
if (downloadItem) {
|
if (downloadItem) {
|
||||||
|
@ -18,6 +19,7 @@ export class HTTPDownload {
|
||||||
completedLength: downloadItem.getReceivedBytes(),
|
completedLength: downloadItem.getReceivedBytes(),
|
||||||
totalLength: downloadItem.getTotalBytes(),
|
totalLength: downloadItem.getTotalBytes(),
|
||||||
downloadSpeed: downloadItem.getCurrentBytesPerSecond(),
|
downloadSpeed: downloadItem.getCurrentBytesPerSecond(),
|
||||||
|
folderName: downloadItem.getFilename(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ export class RealDebridDownloader {
|
||||||
fileSize: Number(status.totalLength),
|
fileSize: Number(status.totalLength),
|
||||||
progress,
|
progress,
|
||||||
status: "active",
|
status: "active",
|
||||||
|
folderName: status.folderName,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue